Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/wiretap netmon.c netxray.c wtap.c nettl.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, 22 Mar 2000 01:07:09 -0600 (CST)
guy         2000/03/22 01:07:07 CST

  Modified files:
    wiretap              netmon.c netxray.c wtap.c nettl.c 
                         ascend.c radcom.c ngsniffer.c lanalyzer.c 
                         libpcap.c file.c wtap.h 
  Log:
  In a Network Monitor capture file, get the starting offsets of frames
  from the frame table - Network Monitor 2.x, at least, doesn't always
  write frame N+1 right after frame N.
  
  To do that, we need to mallocate a big array to hold the frame table,
  and free it when we close the capture file; this requires that we have
  capture-file-type-specific close routines as well as
  capture-file-type-specific read routines - we let it the pointer to that
  routine be null if it's not needed.  Given that, we might as well get
  rid of the switch statement in "wtap_close()", in favor of using
  capture-file-type-specific close routines, as per the comment before
  that switch statement.
  
  Revision  Changes    Path
  1.26      +55 -31    ethereal/wiretap/netmon.c
  1.25      +9 -1      ethereal/wiretap/netxray.c
  1.38      +3 -45     ethereal/wiretap/wtap.c
  1.9       +8 -1      ethereal/wiretap/nettl.c
  1.13      +8 -1      ethereal/wiretap/ascend.c
  1.19      +9 -1      ethereal/wiretap/radcom.c
  1.37      +9 -1      ethereal/wiretap/ngsniffer.c
  1.21      +9 -1      ethereal/wiretap/lanalyzer.c
  1.33      +9 -1      ethereal/wiretap/libpcap.c
  1.49      +2 -1      ethereal/wiretap/file.c
  1.65      +3 -2      ethereal/wiretap/wtap.h