Re: Berkeley packet filter device in kernel config

From: Martijn Pronk <martijn_at_sillywalks.org>
Date: Wed, 24 Mar 2004 21:40:01 +0100
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
Received on Wed Mar 24 2004 - 11:40:15 UTC

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