aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorIrene Ruengeler <ruengeler@wireshark.org>2014-06-04 11:03:59 +0200
committerAnders Broman <a.broman58@gmail.com>2014-06-12 05:54:59 +0000
commitdf8c4bf2644d39d66613868256d918346d56aef8 (patch)
treeb0a04ebc37a508598b5e49652ebe83219fff47c2 /epan
parent428c5b9448a510da1d8bc903f59364ef830585ac (diff)
Capture Interfaces Dialog:
- allow to change the interface options in the table - save the options to preferences when the dialog is left - add a field for setting a capture filter for all selected interfaces - add a "Compile BPF" button and a window to show the compiled filter output - try to address Alexis' and Evan's comments Change-Id: Ic1272e29183ec80e2d2f4b3e494c79dabe2c3b6f Reviewed-on: https://code.wireshark.org/review/1946 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/prefs.c4
-rw-r--r--epan/prefs.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index 6bfe314dd4..0cc1ff92d4 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -2431,6 +2431,10 @@ prefs_register_modules(void)
prefs_register_bool_preference(capture_module, "prom_mode", "Capture in promiscuous mode",
"Capture in promiscuous mode?", &prefs.capture_prom_mode);
+ prefs_register_string_preference(capture_module, "devices_filter", "Interface capture filter",
+ "Interface capture filter (Ex: en0(tcp),en1(udp),...)",
+ (const char **)&prefs.capture_devices_filter);
+
prefs_register_bool_preference(capture_module, "pcap_ng", "Capture in Pcap-NG format",
"Capture in Pcap-NG format?", &prefs.capture_pcap_ng);
diff --git a/epan/prefs.h b/epan/prefs.h
index f757bbc818..12093ecd43 100644
--- a/epan/prefs.h
+++ b/epan/prefs.h
@@ -193,6 +193,7 @@ typedef struct _e_prefs {
#endif
gchar *capture_devices_snaplen;
gchar *capture_devices_pmode;
+ gchar *capture_devices_filter;
gboolean capture_prom_mode;
gboolean capture_pcap_ng;
gboolean capture_real_time;