From owner-freebsd-current@FreeBSD.ORG Wed Mar 24 12:15:36 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9767616A4CE for ; Wed, 24 Mar 2004 12:15:36 -0800 (PST) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 606C843D2D for ; Wed, 24 Mar 2004 12:15:36 -0800 (PST) (envelope-from max@love2party.net) Received: from [212.227.126.161] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1B6Eml-0007DC-00; Wed, 24 Mar 2004 21:15:35 +0100 Received: from [217.83.7.252] (helo=donor.laier.local) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1B6Eml-0005Bl-00; Wed, 24 Mar 2004 21:15:35 +0100 From: Max Laier To: freebsd-current@freebsd.org Date: Wed, 24 Mar 2004 21:16:10 +0100 User-Agent: KMail/1.6.1 References: <20040324193308.10312.qmail@web40613.mail.yahoo.com> In-Reply-To: <20040324193308.10312.qmail@web40613.mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_QyeYAsLCcdNMMBt"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200403242116.16692.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:e28873fbe4dbe612ce62ab869898ff08 cc: MaNUaL Subject: Re: Berkeley packet filter device in kernel config X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 20:15:36 -0000 --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--