Re: Berkeley packet filter device in kernel config

From: Kevin Oberman <oberman_at_es.net>
Date: Wed, 24 Mar 2004 12:56:30 -0800
> Date: Wed, 24 Mar 2004 11:33:08 -0800 (PST)
> From: MaNUaL <manual3000_at_yahoo.com>
> Sender: owner-freebsd-current_at_freebsd.org
> 
> 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
> 
> 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?

In V4 it's a pseudo-device. In V5, it's a device.

In V5 devices are created by devfs and are dynamic. As a result, if you
are not using any filer devices, they won't exist.

Try running a tcpdump and, while it's running do 'ls /dev/bpf*'. Kill
the tcpdump and do it again.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman_at_es.net			Phone: +1 510 486-8634
Received on Wed Mar 24 2004 - 11:56:31 UTC

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