Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/wiretap radcom.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 18:54:02 -0500 (CDT)
guy         1999/09/01 18:54:00 CDT

  Modified files:
    wiretap              radcom.c 
  Log:
  When reading packets from a capture file, don't seek around record
  header fields we don't look at - 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 the entire record header into a structure, and pick the
  relevant bits out of it.
  
  Also, skip over the FCS in LAPB captures by reading it rather than
  seeking around it (should we put it in the pseudo-header?).
  
  Revision  Changes    Path
  1.9       +49 -50    ethereal/wiretap/radcom.c