*BSD News Article 12631


Return to BSD News archive

Xref: sserve comp.os.386bsd.apps:31 comp.os.386bsd.development:148
Newsgroups: comp.os.386bsd.apps,comp.os.386bsd.development
Path: sserve!newshost.anu.edu.au!munnari.oz.au!comp.vuw.ac.nz!duncan
From: duncan@comp.vuw.ac.nz (Duncan McEwan)
Subject: Re: WD8003 Promiscuous mode, Berkeley Packet Filter, and tcpdump
Nntp-Posting-Host: bats.comp.vuw.ac.nz
Message-ID: <C3p2pt.Euw@comp.vuw.ac.nz>
Organization: Comp Sci, Victoria University, Wellington, New Zealand
Sender: news@comp.vuw.ac.nz (News Admin)
References: <C3nqox.7MC@comp.vuw.ac.nz> <1nlhie$6ub@walt.ee.pdx.edu>
Date: Wed, 10 Mar 1993 22:34:41 GMT
Lines: 36

rgrimes@acacia (Rodney W. Grimes) writes:
>Yep and you'll be the third person to do this work!  There is a very complete
>set of patches and a new version of tcpdump on ref.tfs.com.  Look in ~davidg
>for it.

I did recall seeing some mention of someone having already done it, or being
interested in doing it before I started.  But I didn't see anything on agate,
and couldn't connect to ref at the time.  Oh well, it was an educational
experience doing it myself anyway!

>If you can't find it there email to davidg@implode.rain.com and ask
>him for it

David replied to my posting, enclosing his version of if_we.c, which
answered the main question of how to put the WD8003 into promiscuous mode.

>This work is based upon the lattest version of bpf available from lbl.gov
>and supercedes the version supplied with the distribution in etcdist.

Yes, I found that the newer version of bpf compiled cleanly on 386bsd, whereas
the version in /sys/net had some problems to do with placement of certain
#include lines.

Thanks to David, and also to Peter Van Epp and Sean Fagan for useful
information.

No one answered my second question, regarding how the code in weinit() that
that sets promiscuous mode gets reached.  I put my promiscuous mode setting
code in that routine because that is where the example Lance driver had
it, so it should have the same problem.  David Greenman avoided the problem
by duplicating the appropriate code in both weinit() and weioctl().  Oh well,
we've just received our 4.4bsd tape, so once that is installed on one of
our hp300's, I will be able to put some debugging in the le driver and figure
it out...

Duncan