*BSD News Article 55669


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!btnet!demon!sunsite.doc.ic.ac.uk!nntp0.brunel.ac.uk!not-for-mail
From: Nik.Clayton@brunel.ac.uk (Nik Clayton)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: CAP on FreeBSD. Trouble.
Date: 22 Nov 1995 18:00:02 -0000
Organization: Brunel University, Uxbridge, UK
Lines: 40
Message-ID: <48vof2$jik@molnir.brunel.ac.uk>
References: <JENS.95Nov13210918@lena.rydnet.lysator.liu.se> <s7e4tw2fig3.fsf@fender.fct.kgc.co.jp> <ts-1811951825230001@mac.infodirekt.de> <9532501.16559@mulga.cs.mu.oz.au>
NNTP-Posting-Host: molnir.brunel.ac.uk
X-Submissions-To: ahbou-sub@acpub.duke.edu for alt.humor.best-of-usenet
X-URL: http://http2.brunel.ac.uk:8080/~xxccnjc/

>ts@infodirekt.de (Thomas Schreiber) writes:
>>What version of CAP are you talking about?
>>I use CAP 6.0 pl196 and find neither MULTI_BPF_PKT in lib/cap/absched.c
>>nor the file bpfiltp.c in support/ethertalk.

It's definitely there, I run CAP pl196 (added 196 last night, prior to
that it was 195), and had to alter the files as well. Improved
performace by many orders of magnitude.

In my case, I added the lines

    #ifdef __FreeBSD__
	#define MULTI_BPF_PKT
	#define USE_SIOCGIFCONF
	#endif __FreeBSD__

Right after a similar 'define for NetBSD in support/ethertalk/bpfiltp.c,
and

	#ifdef __FreeBSD__
	#define MULTI_BPF_PKT
	#endif

to lib/cap/absched.c,

If you doublt check and they're still not there, verify your patch
level. I started with a base CAP 60, and added all 196 patches, as I had
some problems with cap60+pl100, and only applying patches 101 and
upwards.

I'm in the process of writing a HOW-TO for all this, that may eventually
include printing with CAP as well (if anyone's got that bit working, I'd
like to hear from you, nik@blueberry.co.uk is the address to use
please).

N
-- 
=-[Opinion, n: See the above text for an example]=-=[Kibo #: e]-[RYRYRY]=-=
=-[The Silly Sod Society: To perfect and to swerve]=-[beable]-=[TP U BG]=-=
Ambition is a poor excuse for not having sense enough to be lazy.