Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan packet.h

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxx>
Date: Wed, 1 Oct 2003 02:11:46 -0500 (CDT)
guy         2003/10/01 02:11:46 CDT

  Modified files:
    epan                 packet.h 
  Log:
  Have a pseudo-header for Ethernet packets, giving the size of the FCS -
  0 means "there is no FCS in the packet data", 4 means "there is an FCS
  in the packet data", -1 means "I don't know whether there's an FCS in
  the packet data, guess based on the packet size".
  
  Assume that Ethernet encapsulated inside other protocols has no FCS, by
  having the "eth" dissector assume that (and not check for an Ethernet
  pseudo-header).
  
  Have "ethertype()" take an argument giving the FCS size; pass 0 when
  appropriate.
  
  Fix up Wiretap routines to set the pseudo-header.  This means we no
  longer use the "generic" seek-and-read routine, so get rid of it.
  
  Revision  Changes    Path
  1.72      +2 -2      ethereal/epan/packet.h