Ethereal-dev: Re: [Ethereal-dev] While writing to a pipe, getting some errorneous extra bytes

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Thu, 05 Jan 2006 00:12:07 -0800
Ulf Lamping wrote:

I'm calling the following (under cygwin):

./tethereal -i 3 -c 10 -a duration:30 -F libpcap -w - > ./testout.pcap 2>./testout.txt

But it works OK if you do

	./tethereal -i 3 -c 10 -a duration:30 -F libpcap -w testout.pcap

?

But there are three additional bytes: "00 00 02" between each captured packet (first appearance at offset 0x52), which obviously will produce an error when reading the file later.

Actually, it's "at the end of each captured packet" - there's one at the end of the file, too.