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: "John McDermott" <jjm@xxxxxxxxxx>
Date: Thu, 05 Jan 2006 11:08:38 -0700
Ulf Lamping wrote:
Guy Harris wrote:

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

?
Yes, the test case "directly writing to a file" is working well.
Any ideas what is going on?


It is possible that stdout is not being set to binmode by ethereal. I do not have a Cygwin system set up with a compiler to test it, but maybe that is at least part of the issue.

--john



--
John McDermott, CCP
Writer, Educator, Consultant
jjm@xxxxxxxxxx        www.jkintl.com
V: +1 505/377-6293  F: +1 505/377-6313