*BSD News Article 82496


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news-peer.gsl.net!news.gsl.net!news-dc.gsl.net!news.gsl.net!news
From: John Lucas <jlucas@jnet.vi>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Etherload, bpf, nocol etc., how?
Date: Fri, 08 Nov 1996 09:26:26 -0400
Organization: University of the Virgin Islands
Lines: 33
Message-ID: <32833502.41C67EA6@jnet.vi>
References: <55cvaf$hfn@chenab.lums.edu.pk> <55qrfn$j39@news.parc.xerox.com>
NNTP-Posting-Host: backen.uvi.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.01 (X11; I; FreeBSD 2.1.0-RELEASE i386)

Bill Fenner wrote:
> 
> In article <55cvaf$hfn@chenab.lums.edu.pk>,
> Sohail Aslam <aslam@lums.edu.pk> wrote:
> >% ./etherload -d /dev/bpf0
> >debug: Checking for devices: /dev/bpf0
> >etherload: BIOCSETIF: Device not configured
> 
> I've never used etherload, but this error indicates that etherload is
> trying to use the BIOCSETIF ioctl to tell bpf which interface to use,
> and bpf is saying it's invalid.  Is there a switch to etherload to give
> it the interface name?  Perhaps you really want "-d ed0" or whatever,
> instead of "-d /dev/bpf0".
> 
>   Bill
>

Not quite. This is referring to the "Berkeley Packet Filter device" which
requires generating a new kernal with the following option:

	pseudo-device   bpfilter        4       #Berkeley packet filter

And you'll need to create the device itself as well:

	cd /dev
	MAKEDEV bpf0


---
| John Lucas                          jlucas@jnet.vi                 |
| Information Technology              NIC Handle: JL423              |
| University of the Virgin Islands    (809) 693-1216                 |
| St. Thomas, VI 00802                http://www.jnet.vi/jlucas.html |