Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/wiretap etherpeek.c

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: Wed, 5 Dec 2001 01:19:12 -0600 (CST)
guy         2001/12/05 01:19:12 CST

  Modified files:
    wiretap              etherpeek.c 
  Log:
  The data structure for per-packet headers for Mac V5 and V6 Etherpeek
  files would put a 32-bit quantity on a 16-bit boundary without padding;
  this means that many compilers will insert the padding and thus make the
  structure not match what's in the file.
  
  Instead of using a C structure, #define values for the offsets of
  fields, read the header into an array of bytes, and extract values using
  the offsets.
  
  Revision  Changes    Path
  1.7       +96 -64    ethereal/wiretap/etherpeek.c