aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2016-12-27 10:14:32 +0100
committerRoland Knall <rknall@gmail.com>2016-12-27 11:55:51 +0000
commit9d47bf993932c064c60ea79592a06f0ffd383fd6 (patch)
tree82c7bf282defab09fec6ecf75d889df5c51387d2 /epan
parent8e6953a64b0b785918d4a234e1eb09de21cfb5b8 (diff)
InterfaceList: Add check for remote interface
Add a check, to allow the filtering of remote only interfaces. Also add the necessary options to the type menu. Change-Id: Ib82519362454094f64abf1cbe6d7bc917990d7ac Reviewed-on: https://code.wireshark.org/review/19438 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/prefs.c10
-rw-r--r--epan/prefs.h3
2 files changed, 13 insertions, 0 deletions
diff --git a/epan/prefs.c b/epan/prefs.c
index f0dd59bc7a..9528d16bf8 100644
--- a/epan/prefs.c
+++ b/epan/prefs.c
@@ -2527,6 +2527,13 @@ prefs_register_modules(void)
"Show all interfaces, including interfaces marked as hidden",
&prefs.gui_interfaces_show_hidden);
+#ifdef HAVE_PCAP_REMOTE
+ prefs_register_bool_preference(gui_module, "interfaces_remote_display",
+ "Show Remote interfaces",
+ "Show remote interfaces in the interface selection",
+ &prefs.gui_interfaces_remote_display);
+#endif
+
register_string_like_preference(gui_module, "interfaces_hidden_types", "Hide interface types in list",
"Hide the given interface types in the startup list",
&prefs.gui_interfaces_hide_types, PREF_STRING, NULL, TRUE);
@@ -3202,6 +3209,9 @@ pre_init_prefs(void)
if (prefs.gui_interfaces_hide_types) g_free (prefs.gui_interfaces_hide_types);
prefs.gui_interfaces_hide_types = g_strdup("");
prefs.gui_interfaces_show_hidden = FALSE;
+#ifdef HAVE_PCAP_REMOTE
+ prefs.gui_interfaces_remote_display = TRUE;
+#endif
prefs.gui_qt_packet_list_separator = FALSE;
diff --git a/epan/prefs.h b/epan/prefs.h
index a64d363e58..93094c048c 100644
--- a/epan/prefs.h
+++ b/epan/prefs.h
@@ -193,6 +193,9 @@ typedef struct _e_prefs {
layout_pane_content_e gui_layout_content_3;
gchar *gui_interfaces_hide_types;
gboolean gui_interfaces_show_hidden;
+#ifdef HAVE_PCAP_REMOTE
+ gboolean gui_interfaces_remote_display;
+#endif
gint console_log_level;
gchar *capture_device;
gchar *capture_devices_linktypes;