From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21419 invoked from network); 7 Dec 1999 17:17:36 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 7 Dec 1999 17:17:36 -0000 Received: from radicalmedia.com (eel.radicalmedia.com [204.254.246.9]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA20090 for ; Tue, 7 Dec 1999 12:17:35 -0500 Received: (from phiber@localhost) by radicalmedia.com (8.8.6/8.8.6) id MAA02604 for axp-list@redhat.com; Tue, 7 Dec 1999 12:24:28 -0500 (EST) Message-ID: <19991207122427.R19418@radicalmedia.com> Date: Tue, 7 Dec 1999 12:24:27 -0500 From: Mark Abene To: axp-list@redhat.com Subject: Re: libpcap fix (Re: nmap port) References: <19991207014211.Q19418@radicalmedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Dan Frasnelli on Tue, Dec 07, 1999 at 07:09:30AM -0800 On Tue, Dec 07, 1999 at 07:09:30AM -0800, Dan Frasnelli wrote: > Excellent work, Mark. I'm sure everyone here that does network security > will buy you a beverage at some time in the future ;-) Thanks! Really, it was no biggie. Just needed to be done. > > Few weeks back, I posted something to this list about fixing libpcap > under Linux/axp. To recap, here are the issues I (and probably anyone > else trying to use the redhat pcap packages) encountered: > - failure to read capturefiles collected on non-Linux/axp platforms Ditto. "tcpdump: pcap_loop: bogus savefile header" > - applications linked to libpcap segfault on mmap() calls; most of my > security/net analysis stuff was useless on my personal boxes. > > Came up with a working solution but have not found the time to determine > "why". The libpcap and tcpdump sources provided with debian work with > linux/axp; I've tested the snort NIDS, tcpflow, tcptrace, and some > homebrew code that uses pcap - no problems as of yet. > > From your local debian mirror, grab: > /debian/dists/stable/main/source/libs/libpcap_0.4a6.orig.tar.gz > /debian/dists/stable/main/source/libs/libpcap_0.4a6-2.1.diff.gz > > (and if you want a working tcpdump) > /debian/dists/stable/main/source/net/tcpdump_3.4a6.orig.tar.gz > /debian/dists/stable/main/source/net/tcpdump_3.4a6-3.diff.gz > ... The stock redhat tcpdump worked fine for me. There was still the non-portability of dump files problem, but I still have that same problem even using the above debian sources. FWIW, after looking at their diff files, they didn't do anything to any of the sources. The only really notable changes are to the configure scripts. But libpcap still has the dumpfile problem, which I'll be looking into shortly. I can read sparc/linux dumpfiles just fine on freebsd/x86, and vice versa. No reason it shouldn't work on Alpha. Just some silliness on someone's part, probably more 64-bit unfriendliness. -Mark