aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-11-26 02:25:20 +0000
committerGuy Harris <guy@alum.mit.edu>2013-11-26 02:25:20 +0000
commit945d6d049c18d4636d4f199ead72dece89bdfa65 (patch)
treeae7812d94d07fcb2348e7ff9f7548fa2565fde19 /capture_opts.h
parent913bc4a2427800563e2fbee2ca8ec4026c8737c7 (diff)
Add a comment about the "default options".
svn path=/trunk/; revision=53590
Diffstat (limited to 'capture_opts.h')
-rw-r--r--capture_opts.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/capture_opts.h b/capture_opts.h
index f99dac62c1..06e8169899 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -175,7 +175,26 @@ typedef struct capture_options_tag {
Currently only used by dumpcap. */
GArray *all_ifaces;
guint num_selected;
+
+ /*
+ * Options to be applied to all interfaces.
+ *
+ * Some of these can be set from the GUI, others can't; setting
+ * the link-layer header type, for example, doesn't necessarily
+ * make sense, as different interfaces may support different sets
+ * of link-layer header types.
+ *
+ * Some that can't be set from the GUI can be set from the command
+ * line, by specifying them before any interface is specified.
+ * This includes the link-layer header type, so if somebody asks
+ * for a link-layer header type that an interface on which they're
+ * capturing doesn't support, we should report an error and fail
+ * to capture.
+ *
+ * These can be overridden per-interface.
+ */
interface_options default_options;
+
gboolean saving_to_file; /**< TRUE if capture is writing to a file */
gchar *save_file; /**< the capture file name */
gboolean group_read_access; /**< TRUE is group read permission needs to be set */