From owner-freebsd-questions Thu Nov 16 8:32:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from rly-ip02.mx.aol.com (rly-ip02.mx.aol.com [152.163.225.160]) by hub.freebsd.org (Postfix) with ESMTP id 00E6937B479 for ; Thu, 16 Nov 2000 08:32:22 -0800 (PST) Received: from tot-tr.proxy.aol.com (tot-tr.proxy.aol.com [152.163.201.131]) by rly-ip02.mx.aol.com (8.8.8/8.8.8/AOL-5.0.0) with ESMTP id LAA22188; Thu, 16 Nov 2000 11:31:30 -0500 (EST) Received: from hppav (AC93ADC1.ipt.aol.com [172.147.173.193]) by tot-tr.proxy.aol.com (8.10.0/8.10.0) with ESMTP id eAGGVSC20016; Thu, 16 Nov 2000 11:31:28 -0500 (EST) From: "Batra, Lalit M" Date: Thu, 16 Nov 2000 11:35:47 -0500 To: Nick Slager Subject: Re: tcpdump: bad file format Cc: questions@FreeBSD.ORG, unix -jmu In-Reply-To: <20001116220021.B36386@albury.net.au> References: <20001116220021.B36386@albury.net.au> Message-ID: X-Mailer: Execmail for Win32 Version 5.0.1 Build (55) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" X-Apparently-From: Rohitkelkar@aol.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What you are saying has been tried but I get the same result.I ac read the file otherwise. This has some thing to do with pcap.h.NAy ideas On Thu, 16 Nov 2000 22:00:21 +1100 Nick Slager wrote: > Thus spake Batra, Lalit M (batralm@jmu.edu): > > > I am doing some network experimenst(FREEBSD), Using > > Tcpdump.I cannot convert the tcpdump "output.dmp" into > > binary form so thatt i can use Tcptrace and then xplot to > > see the packets. > > Following are the steps which i am doing:- > > 1) tcpdump -i xl1 host 192.168.20.2 > output.dmp > > 2) tcpdump -r output.dmp > > ERROR: bad dump file format.???? > > I have also tried -w option , same error. > > How exactly are you using -w? It should be like this: > > tcpdump -i xl1 -w output.dmp host 192.168.20.2 > > You can't just redirect the ascii output; you must use -w. > > > Nick > > -- > From a Sun Microsystems bug report (#4102680): > "Workaround: don't pound on the mouse like a wild monkey." > -- Batra, Lalit M batralm@jmu.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message