Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2004 12:56:30 -0800
From:      "Kevin Oberman" <oberman@es.net>
To:        MaNUaL <manual3000@yahoo.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Berkeley packet filter device in kernel config 
Message-ID:  <20040324205630.BBEE45D0A@ptavv.es.net>
In-Reply-To: Your message of "Wed, 24 Mar 2004 11:33:08 PST." <20040324193308.10312.qmail@web40613.mail.yahoo.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Wed, 24 Mar 2004 11:33:08 -0800 (PST)
> From: MaNUaL <manual3000@yahoo.com>
> Sender: owner-freebsd-current@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@es.net			Phone: +1 510 486-8634



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040324205630.BBEE45D0A>