Re: tcptrace Suse 9.1 and erf file format

From: Joshua Blanton (jblanton@masaka.cs.ohiou.edu)
Date: 09/27/04


Date: Mon, 27 Sep 2004 00:04:59 -0400
From: Joshua Blanton <jblanton@masaka.cs.ohiou.edu>
Subject: Re: tcptrace Suse 9.1 and erf file format
Message-ID: <20040927040459.GB27445@jtb.ipx.ath.cx>



Actually, the bug isn't in the erf file format parser - it's in the
version of libpcap that you have installed (I suspect). The newer
versions of libpcap close our input file stream after the file match
fails, which then causes every file format that's tested afterwards to
be unable to read from the stream. Attached is a patch that should
fix this problem...

--jtb

Francesco Vacirca wrote:
> Hallo,
>
> We had some problem with erf file format reading and Suse 9.1...
> this is a simple patch to solve the problem in the erf.c file.
>
> 281,285d280
> < #else
> < if((stdin=fopen(filename,"r")) == NULL) {
> < perror(filename);
> < exit(-1);
> < }

-- 
Those who beat their swords into plowshares usually end up plowing for
those who didn't.
	-- Ben Franklin



----------------------------------------------------------------------------
To unsubscribe, send a message with body containing "unsubscribe tcptrace" to
majordomo@tcptrace.org.





This archive was generated by hypermail 2.1.7 : 09/27/04 EDT