Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/wiretap snoop.c

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 1 Sep 1999 19:14:10 -0500 (CDT)
guy         1999/09/01 19:14:08 CDT

  Modified files:
    wiretap              snoop.c 
  Log:
  When skipping over the padding at the end of a record in a capture file,
  don't seek around it - some implementations of the standard I/O library
  routines (e.g., the ones in Solaris 2.5.1, at least) appear not to be
  clever enough to handle seeks that occur within the buffer by moving the
  current buffer position; instead, they do a seek on the underlying file
  descriptor *and* appear to throw out the buffer, forcing them to do
  another read.
  
  Instead, read it into a buffer.
  
  Revision  Changes    Path
  1.10      +28 -5     ethereal/wiretap/snoop.c