Xcode 4 isn't available on DVD, but is available for download from
[obnox/wireshark/wip.git] / packet-range.h
index 3007d215c88ad9b3f050adfd61c8d71adbd478ed..0a00af2e2e63e1406de6aba341d794407de5c3f8 100644 (file)
@@ -6,8 +6,8 @@
  * Dick Gooris <gooris@lucent.com>
  * Ulf Lamping <ulf.lamping@web.de>
  *
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * This program is free software; you can redistribute it and/or
@@ -48,9 +48,11 @@ typedef struct packet_range_tag {
     /* values coming from the UI */
     packet_range_e  process;            /* which range to process */
     gboolean        process_filtered;   /* captured or filtered packets */
+    gboolean        remove_ignored;     /* remove ignored packets */
 
-    /* user specified range(s) */
-    range_t         user_range;
+    /* user specified range(s) and, if null, error status */
+    range_t         *user_range;
+    convert_ret_t   user_range_status;
 
     /* calculated values */
     guint32  selected_packet;       /* the currently selected packet */
@@ -60,12 +62,20 @@ typedef struct packet_range_tag {
     /* cfile.marked_count */        /* packets marked */
     guint32  mark_range_cnt;        /* packets in marked range */
     guint32  user_range_cnt;        /* packets in user specified range */
+    guint32  ignored_cnt;           /* packets ignored */
+    guint32  ignored_marked_cnt;    /* packets ignored and marked */
+    guint32  ignored_mark_range_cnt;/* packets ignored in marked range */
+    guint32  ignored_user_range_cnt;/* packets ignored in user specified range */
 
     /* current packet counts (displayed) */
     guint32  displayed_cnt;
     guint32  displayed_marked_cnt;
     guint32  displayed_mark_range_cnt;
     guint32  displayed_user_range_cnt;
+    guint32  displayed_ignored_cnt;
+    guint32  displayed_ignored_marked_cnt;
+    guint32  displayed_ignored_mark_range_cnt;
+    guint32  displayed_ignored_user_range_cnt;
 
     /* "enumeration" values */
     gboolean marked_range_active;   /* marked range is currently processed */
@@ -82,8 +92,11 @@ typedef enum {
 /* init the range structure */
 extern void packet_range_init(packet_range_t *range);
 
+/* check whether the packet range is OK */
+extern convert_ret_t packet_range_check(packet_range_t *range);
+
 /* init the processing run */
-void packet_range_process_init(packet_range_t *range);
+extern void packet_range_process_init(packet_range_t *range);
 
 /* do we have to process all packets? */
 extern gboolean packet_range_process_all(packet_range_t *range);