Date: Wed, 24 Mar 2004 21:16:10 +0100 From: Max Laier <max@love2party.net> To: freebsd-current@freebsd.org Cc: MaNUaL <manual3000@yahoo.com> Subject: Re: Berkeley packet filter device in kernel config Message-ID: <200403242116.16692.max@love2party.net> In-Reply-To: <20040324193308.10312.qmail@web40613.mail.yahoo.com> References: <20040324193308.10312.qmail@web40613.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-02=_QyeYAsLCcdNMMBt Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 24 March 2004 20:33, 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 > > 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? "pseudo-device" is gone for a long time now (in 5.x at least). If the handb= ook=20 referse to pseudo-device it must be updated. "device bpf" gives what you are looking for, but the device nodes are not=20 created as long as they are not used. Try for example: # tcpdump -i lo0 ^C and you will find /dev/bpf0 afterwards. More information on this topic is i= n=20 the archives ... search for "mega patch", "device cloning" and "bfp0" ---=20 iirc the same issue was discussed back then. I think you just have to open(= )=20 or stat() the device and devfs will do the rest. =2D-=20 Best regards, | mlaier@freebsd.org Max Laier | ICQ #67774661 http://pf4freebsd.love2party.net/ | mlaier@EFnet --Boundary-02=_QyeYAsLCcdNMMBt Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAYeyQXyyEoT62BG0RAlTNAJwOb/4eIJYsiGrJUGAb2EklvmnSYQCfT9mg Vo4t5Dxu1r7B1D/UbBr0hIA= =wExa -----END PGP SIGNATURE----- --Boundary-02=_QyeYAsLCcdNMMBt--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403242116.16692.max>