Skip site navigation (1)Skip section navigation (2)
Date:      08 Feb 1999 00:54:39 +0100
From:      Dag-Erling Smorgrav <des@flood.ping.uio.no>
To:        Bill Fenner <fenner@parc.xerox.com>
Cc:        Dag-Erling Smorgrav <des@flood.ping.uio.no>, wpaul@FreeBSD.ORG, nsouch@FreeBSD.ORG, hackers@FreeBSD.ORG
Subject:   Re: Regarding tcpdump and plip
Message-ID:  <xzp1zk1hirk.fsf@flood.ping.uio.no>
In-Reply-To: Bill Fenner's message of "Sun, 7 Feb 1999 15:44:01 PST"
References:  <199902072344.PAA06579@mango.parc.xerox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bill Fenner <fenner@parc.xerox.com> writes:
> Here are some diffs that I wrote ages ago for lpt.c, but never
> committed because nobody volunteered to test them.  They at least
> demonstrate what tcpdump wants (an int, in host byte order, with
> AF_INET in it).  You could also look at if_sl.c, if_loop.c, etc.

I strongly suspect they work for FreeBSD-mode PLIP, and will install
and test a similar patch (I can't apply your patch directly since the
plip driver has been detached from the parallell port code, so the
offsets are all wrong)

I also strongly suspect that it is utterly bogus for Crynwr-mode PLIP,
but that was already broken. The reason it won't work for Crynwr-mode
PLIP is that in Crynwr mode, the plip driver already prepends a fake
Ethernet header to every packet, so you end up with a bpf header that
says the packet is an IP packet when in fact it's an Ethernet frame
which may or may not contain an IP packet.

Then again, I may be wrong :)

DES
-- 
Dag-Erling Smorgrav - des@flood.ping.uio.no

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp1zk1hirk.fsf>