Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/wiretap netxray.c wtap-int.h

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 7 Apr 2002 16:29:02 -0500 (CDT)
guy         2002/04/07 16:29:02 CDT

  Modified files:
    wiretap              netxray.c wtap-int.h 
  Log:
  Make the end-of-packet padding a per-capture-file property.
  
  Read in the entire packet, including the padding, and just tell our
  caller about the non-padding part; that avoids doing a "file_seek()"
  ("fseek()"s are inefficient on some platforms, as they flush the
  standard I/O buffers and do an "lseek()"), and would also let us supply
  the padding to the caller if it turns out it's an FCS rather than
  padding.
  
  Revision  Changes    Path
  1.49      +32 -20    ethereal/wiretap/netxray.c
  1.23      +2 -1      ethereal/wiretap/wtap-int.h