Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/gtk capture_dlg.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, 7 Dec 1999 16:11:08 -0600 (CST)
guy         1999/12/07 16:11:05 CST

  Modified files:
    gtk                  capture_dlg.c 
  Log:
  It appears that the IRIX SIOCSNOOPLEN "ioctl", as used by "libpcap" to
  set the capture length on IRIX, may fail if the capture length supplied
  is too large, rather than just truncating it.  Use MIN_PACKET_SIZE,
  rather than WTAP_MAX_PACKET_SIZE, in our sample open.
  
  Let's hope some *other* platform doesn't barf if the capture length is
  too *small*....
  
  (Sigh.  Would that "pcap_open_live()" accepted 0 as a capture size,
  meaning "give me the whole packet".  Unfortunately, it doesn't, so IRIX
  users may have to crank the capture size back in the capture dialog
  box.)
  
  Revision  Changes    Path
  1.10      +5 -2      ethereal/gtk/capture_dlg.c