Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/wiretap netmon.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: Tue, 4 Dec 2001 17:38:55 -0600 (CST)
guy         2001/12/04 17:38:55 CST

  Modified files:
    wiretap              netmon.c 
  Log:
  In the NetMon capture file reading code, if we get a short read when
  trying to read the frame table, return -1 with "*err" set to
  WTAP_ERR_SHORT_READ, don't return 0 - we've already decided that the
  file is a NetMon file, so we shouldn't return a "this isn't a NetMon
  file" indication, we should return a "this file is too short" error, as
  that's what the problem is.
  
  Fix up the error messages for WTAP_ERR_SHORT_READ to indicate that the
  read might have gotten cut short in the middle of data other than a
  packet.
  
  Revision  Changes    Path
  1.44      +4 -4      ethereal/wiretap/netmon.c