*BSD News Article 58446


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!howland.reston.ans.net!agate!sunsite.doc.ic.ac.uk!demon!pencotts.demon.co.uk
From: Andrew Gordon <andrew.gordon@net-tel.co.uk>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Need help configuring /dev/bpf0
Date: Fri, 29 Dec 1995 01:48:55 GMT
Lines: 16
Message-ID: <820201735.23333@pencotts.demon.co.uk>
References: <4but1q$l3m@news.abq.bdm.com>
NNTP-Posting-Host: pencotts.demon.co.uk
X-NNTP-Posting-Host: pencotts.demon.co.uk
X-Mailer: Mozilla 1.1N (X11; I; BSD/386 uname failed)
MIME-Version: 1.0
To: rhughes2@bdm.com
X-URL: news:4but1q$l3m@news.abq.bdm.com
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

rhughes2@bdm.com (Ralph Hughes) wrote:
>I am attempting to use tcpdump to build some network stats tools.  However
>whenever I invoke tcpdump I get a "device not configured" error on /dev/bpf0.
>Do I need to rebuild the kernel to use packet filtering ?

Yes.

>If so, what parameter needs to be changed and where ?
Add the following to your kernel configuration:

pseudo-device   bpfilter 4

(where the '4' can be any number, giving the maximum number of copies of
tcpdump or other applications using bpf that you wish to use simultaneously).