Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/gtk capture_dlg.c main.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: Sat, 23 Feb 2002 21:33:07 -0600 (CST)
guy         2002/02/23 21:33:06 CST

  Modified files:
    gtk                  capture_dlg.c main.c 
  Log:
  "autostop_filesize" and "autostop_duration" don't need to be in the
  "capture_file" structure - they're a property of an in-progress capture,
  not a property of an open capture file.  Make them just variables.
  
  The maximum number of packets to be captured should be a variable
  separate from the "count" field in the "capture_file" structure - the
  latter is a count of the packets in the capture file in question.
  
  Have Boolean variables indicating whether a maximum packet count,
  maximum capture file size, and maximum capture duration were specified.
  If an option isn't set, and we're doing an "update list of packets in
  real time" capture, don't pass the option to the child process with a
  command-line argument.
  
  Don't create "stop when the capture file reaches this size" or "stop
  when the capture's run for this long" conditions if a maximum capture
  file size or a maximum capture duration, respectively, haven't been
  specified.  Don't test or free a condition if it wasn't created.
  
  Don't allow a 0 argument to the "-c" flag - the absence of a "-c" flag
  is the way you specify "no limit on the number of packets".
  
  Initialize the check boxes and spin buttons for the "maximum packets to
  capture", "maximum capture size", and "maximum capture duration" options
  to the values they had in the last capture.  If an option wasn't
  specified, don't read its value from the dialog box and set the
  variable.
  
  Revision  Changes    Path
  1.60      +21 -24    ethereal/gtk/capture_dlg.c
  1.235     +19 -7     ethereal/gtk/main.c