From owner-freebsd-hackers Sun Feb 7 15:55:01 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA06626 for freebsd-hackers-outgoing; Sun, 7 Feb 1999 15:55:01 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA06600; Sun, 7 Feb 1999 15:54:44 -0800 (PST) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.2/8.9.1) id AAA89170; Mon, 8 Feb 1999 00:54:39 +0100 (CET) (envelope-from des) To: Bill Fenner Cc: Dag-Erling Smorgrav , wpaul@FreeBSD.ORG, nsouch@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: Regarding tcpdump and plip References: <199902072344.PAA06579@mango.parc.xerox.com> From: Dag-Erling Smorgrav Date: 08 Feb 1999 00:54:39 +0100 In-Reply-To: Bill Fenner's message of "Sun, 7 Feb 1999 15:44:01 PST" Message-ID: Lines: 23 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bill Fenner 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