From owner-freebsd-hackers Fri Nov 21 14:34:29 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id OAA20165 for hackers-outgoing; Fri, 21 Nov 1997 14:34:29 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from ns.mt.sri.com (sri-gw.MT.net [206.127.105.141]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id OAA20152 for ; Fri, 21 Nov 1997 14:34:26 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.8.8/8.8.8) with SMTP id PAA29984; Fri, 21 Nov 1997 15:34:24 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id PAA15870; Fri, 21 Nov 1997 15:34:22 -0700 Date: Fri, 21 Nov 1997 15:34:22 -0700 Message-Id: <199711212234.PAA15870@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: bmah@CA.Sandia.GOV Cc: Nate Williams , hackers@freebsd.org Subject: Re: Getting ethernet packets content under FreeBSD? In-Reply-To: <199711212231.OAA18274@stennis.ca.sandia.gov> References: <199711212146.OAA15613@mt.sri.com> <199711212231.OAA18274@stennis.ca.sandia.gov> X-Mailer: VM 6.29 under 19.15 XEmacs Lucid Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Is it possible to easily? I'm trying to debug a protocol, and w/out the > > contents of the data being sent in the packets it's awful hard to do. > > Is there anyway of dumping out the actual packet contents somewhere > > instead of dumping out the packet headers, which are less than useful > > for upper-layer TCP/IP protocol debugging. > > Does "tcpdump -x -e -s 1500" not do what you want? Probably, I just couldn't figure out how do to it. :) > The tcpdump maintainers deliberately left out an ASCII packet-printer, but > coding one up is pretty easy if that's what you need. I can always run it through hexdump. :) Nate