Berkeley packet filter device in kernel config

Brooks Davis brooks at one-eyed-alien.net
Wed Mar 24 12:45:09 PST 2004


On Wed, Mar 24, 2004 at 11:33:08AM -0800, MaNUaL wrote:
> Hi. I am using 5.2.1-RELEASE-p3 and in the GENERIC
> configuration file of the kernel in
> /usr/src/sys/i386/conf there is the following line:
> 
> device bpf # Berkeley packet filter
> 
> Though, in the FreeBSD handbook it says:
> 
> pseudo-device bpf # Berkeley packet filter

The handbook is out of date relative to 5.x.

> I have used "device bpf" but there is no /dev/bpf* at
> all...
> 
> Am i missing something here? How should i define this?
> pseudo-device or device?

Just open /dev/bpf# until you get one that works.  See the libpcap code
for an example if you need one.  BPF devices are created when opened.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040324/6a230a4b/attachment-0001.bin


More information about the freebsd-current mailing list