lkml.org 
[lkml]   [1998]   [Oct]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: LSF and SOCK_PACKET
From
Date
In article <Mq9XBKC00YUo0gt2Y0@andrew.cmu.edu>,
Garth R Goodson <gg2k+@andrew.cmu.edu> writes:
> Alexey,
> Have you actually bothered to look at source code?

> Your tcpdump uses a user level bpf implemented in the libpcap. If you
> take a look at the latest kernel source 2.1.125 you will see that there
> is no option in setsockopt for adding a packet filter to a SOCK_PACKET
> type.

First check who wrote/rewrote PF_PACKET (and a very big part of the rest
of the LL/DL code) in 2.1. Then SO_ATTACH_FILTER/
SO_DETACH_FILTER are generic socket options that are handled by
core/sock.c for all socket types, the receiving filter is in include/net/sock.h
(that is what I missed in my first mail).

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:3.206 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site