Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/wiretap file.c libpcap.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: Thu, 23 Sep 1999 00:01:05 -0500 (CDT)
guy         1999/09/23 00:01:03 CDT

  Modified files:
    wiretap              file.c libpcap.c 
  Log:
  When reading a capture file, we can detect whether it's compressed or
  not, so it's OK to use "zlib" to read capture files, as it handles
  uncompressed files correctly.
  
  When *writing* capture files, however, we can't detect automatically
  whether the user wanted to write the file out as a compressed file or
  not, so we should *NOT* use "zlib" until we add a flag to the API
  specifying whether to write the file out as a compressed file or not.
  
  Furthermore, the code in Ethereal that implements the "-S" flag depends
  on being able to get the "FILE *" for a capture file being written, so
  that it can "fflush()" it.
  
  Revision  Changes    Path
  1.23      +9 -9      ethereal/wiretap/file.c
  1.19      +5 -5      ethereal/wiretap/libpcap.c