ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

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: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Thu, 05 Jan 2006 23:33:24 +0100
Ulf Lamping wrote:

Agree, but how to set stdout into binary mode, any examples?

I could have a try if someone tells me how to do it :-)

Problem fixed :-)

Found it in wiretap/file_access.c, where it was missing a setmode call in the wtap_dump_fdopen() function, which is used by tethereal. Ethereal itself uses wtap_dump_open() which already addressed that problem.

I've also added a test case to the regression tests.

Regards, ULFL