On Sat, 12 Oct 2002 [EMAIL PROTECTED] wrote: > i'm using 2.4.18, can't find /dev/bpfX anywhere (even at /usr ;P ). at > Documentation/networking/filter.txt says of its existence.
/usr/src/linux/Documentation/devices.txt does not list /dev/bpf* or any Berkeley packet filter devices, and you can not use mknod to create it, unless you know the major/minor device numbers. Neither /usr/src/linux/Documentation/networking/filter.txt nor /usr/src/linux/net/core/filter.c (in kernel 2.4.19) mentions /dev/bpf*. In fact, filter.txt mentions that linux has replaced Berkeley-style packet filtering with socket filtering, so instead of worrying about devices, all you need is to create your filter and send it to the kernel via the ioctl setsockopt(). > have a > sample program here that uses it, haven't compiled it though because > it is _not_ there. I believe that you need to rewrite the code to get it to work under Linux. PMana _ Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph To leave: send "unsubscribe" in the body to [EMAIL PROTECTED] Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
