*BSD News Article 59563


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!btnet!zetnet.co.uk!demon!pencotts.demon.co.uk
From: Andrew Gordon <andrew.gordon@net-tel.co.uk>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Configuring the BPF option?
Date: Sat, 13 Jan 1996 17:34:39 GMT
Lines: 32
Message-ID: <821554479.21525@pencotts.demon.co.uk>
References: <4d8m2e$ao@ixnews2.ix.netcom.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: mlwillia@ix.netcom.com
X-URL: news:4d8m2e$ao@ixnews2.ix.netcom.com
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

mlwillia@ix.netcom.com (Michael Williams) wrote:
>I've seen  many references to recompilng the kernel with the "BPF"
>option.  For give my ignorance but is that done by simply adding a
>line like?:
>
>options		BPF		#Berkeley Packet Filter

No, more like:

pseudo-device   bpfilter 8

where the '8' can be any number - it's the maximum number of tcpdump (or
similar) programs you wish to run simultaneously.

>One other thing, why is it that I cannot execute an executable that is
>not located in my path....I would think as long as I am in the
>directory with the executable is located that it would work?  For
>example, in order to run MAKEDEV  (located in /dev) I had to change my
>path to include /dev.  I'm sure it's something I've set wrong, but....

Solutions:

a) Add the current directory (".") to your path.  Not recommended in multi-user
environments, as it is a security risk

b) You can run executables from your current directory explicitly - eg.

   ./MAKEDEV

You certainly don't need to keep changing the path.