Berkeley packet filter device in kernel config

Martijn Pronk martijn at sillywalks.org
Wed Mar 24 12:40:15 PST 2004


Op 24-mrt-04 om 20:33 heeft MaNUaL het volgende geschreven:

> 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 correct for FreeBSD 4.x but not for 5.x
Read sys/conf/NOTES and/or sys/i386/conf/NOTES for the correct option.

> I have used "device bpf" but there is no /dev/bpf* at
> all...

That's because 5.x uses devfs, the device nodes are created on demand.
If you try a ls -l /dev/bpf0 you'll see that it's there.


> Am i missing something here? How should i define this?
> pseudo-device or device?
device bpf

HTH,

Martijn



More information about the freebsd-current mailing list