network filter questions...

Marc Lehmann (pcg@goof.com)
Thu, 15 Jan 1998 10:40:54 +0100


patch-2.1.79.gz, netsyms.c
-#ifdef CONFIG_FILTER
-EXPORT_SYMBOL(sk_run_filter);
-#endif

why this? this makes compiling af_packet as module impossible..

also, net/core/filter.c does not show up anywhere in the makefiles
anymore.

another question: I´ve hacked tcpdump to use the new
bpf filters (they work fine!), but I´m not sure on
which kind of socket they should be attached...

the kernel complains:
Jan 8 02:51:54 cerebro kernel: tcpdump uses obsolete (AF_INET,SOCK_PACKET)

but I couldn not find another socket type that I could create (socket())
that would also give me packets back (and Documentation/networking/filters
only says they work on all sockets, but doesn´t mention how I actually
get packets on these sockets). Which socket type should I use to get, say,
all packets on interface eth0?

TIA,
Marc

-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg@goof.com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|