Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/wiretap wtap.c wtap.h iptrace.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: Tue, 5 Oct 1999 22:29:42 -0500 (CDT)
guy         1999/10/05 22:29:39 CDT

  Modified files:
    wiretap              wtap.c wtap.h iptrace.c 
  Log:
  Add "wtap_file_encap()", to return the encapsulation of packets in the
  file (which could be WTAP_ENCAP_UNKNOWN, if we couldn't determine it, or
  WTAP_ENCAP_PER_PACKET, if we could determine the encapsulation of
  packets in the file, but they didn't all have the same encapsulation).
  This may be useful in the future, if we allow files to be saved in
  different capture file formats - we'd have to specify, when creating the
  capture file, the per-file encapsulation, for those formats that don't
  support per-packet encapsulations (we wouldn't be able to save a
  multi-encapsulation capture in those formats).
  
  Make the code to read "iptrace" files set the per-file packet
  encapsulation - set it to the type of the first packet seen, and, if any
  subsequent packets have a different encapsulation, set it to
  WTAP_ENCAP_PER_PACKET.
  
  Revision  Changes    Path
  1.25      +6 -1      ethereal/wiretap/wtap.c
  1.43      +4 -1      ethereal/wiretap/wtap.h
  1.14      +14 -1     ethereal/wiretap/iptrace.c