Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 1999 06:10:02 -0800 (PST)
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/13691: tcpslice barfs on >2GB trace file
Message-ID:  <199912061410.GAA01815@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/13691; it has been noted by GNATS.

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: freebsd-gnats-submit@freebsd.org
Cc: Takamichi Tateoka <tate@spa.is.uec.ac.jp>
Subject: Re: bin/13691: tcpslice barfs on >2GB trace file
Date: Mon, 06 Dec 1999 15:05:45 +0200

 Hi there!
 
 I know it's been a while since you reported your problem with tcpslice,
 but I was wondering whether you could test out the following patch from
 the author of tcpslice, without any of the modifications you made
 yourself, and tell me whether the author has come up with a fix that
 works for you.
 
 I know that you raised concerns regarding the storage size used instead
 of ssize_t, which is why I'd like your feedback on Ver's patch.
 
 Thanks,
 Sheldon.
 
 
 --- /tmp/,RCSt1a08617	Mon Dec  6 01:32:06 1999
 +++ /tmp/,RCSt2a08617	Mon Dec  6 01:32:06 1999
 @@ -23,7 +23,7 @@
      "@(#) Copyright (c) 1991, 1992, 1993, 1995, 1996, 1997\n\
  The Regents of the University of California.  All rights reserved.\n";
  static const char rcsid[] =
 -    "@(#)$Header: tcpslice.c,v 1.21 97/01/24 13:36:07 leres Exp $ (LBL)";
 +    "@(#)$Header: tcpslice.c,v 1.22 99/06/22 23:07:45 vern Exp $ (LBL)";
  #endif
  
  /*
 @@ -470,7 +470,7 @@
  		error( "bad tcpdump file %s: %s", filename, errbuf );
  
  	snaplen = pcap_snapshot( p );
 -	start_pos = ftell( pcap_file( p ) );
 +	start_pos = ftello( pcap_file( p ) );
  
  	if ( ! dumper )
  		{
 @@ -491,7 +491,7 @@
  		error( "problems finding end packet of file %s",
  			filename );
  
 -	stop_pos = ftell( pcap_file( p ) );
 +	stop_pos = ftello( pcap_file( p ) );
  
  
  	/* sf_find_packet() requires that the time it's passed as its last
 
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912061410.GAA01815>