Re: Berkeley packet filter device in kernel config

From: Brooks Davis <brooks_at_one-eyed-alien.net>
Date: Wed, 24 Mar 2004 12:45:03 -0800
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

Received on Wed Mar 24 2004 - 11:45:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:48 UTC