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

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: Sun, 29 Jun 2003 19:41:34 -0500 (CDT)
guy         2003/06/29 19:41:34 CDT

  Modified files:
    wiretap              lanalyzer.c 
  Log:
  Use the "rx_frm_len" field from the trace packet data record header,
  rathe than the record length minus the record header length, as the
  number of available (captured) bytes in the packet.  Check to make sure
  that value isn't bigger than the record length minus the header length.
  
  Only subtract the 4-byte FCS length from the purported length of the
  packet on the wire if that would leave the on-the-wire length >= the
  number of captured bytes, so that we can better handle capture files
  from programs that produce LANalyzer-format captures where the
  on-the-wire length *doesn't* include the FCS.
  
  Revision  Changes    Path
  1.38      +25 -2     ethereal/wiretap/lanalyzer.c