aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/interface_tree_model.cpp
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 /ui/qt/interface_tree_model.cpp
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 'ui/qt/interface_tree_model.cpp')
-rw-r--r--ui/qt/interface_tree_model.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/qt/interface_tree_model.cpp b/ui/qt/interface_tree_model.cpp
index 511bb14cec..d55ff7ffe4 100644
--- a/ui/qt/interface_tree_model.cpp
+++ b/ui/qt/interface_tree_model.cpp
@@ -319,6 +319,16 @@ QVariant InterfaceTreeModel::getColumnContent(int idx, int col, int role)
return InterfaceTreeModel::data(index(idx, col), role);
}
+#ifdef HAVE_PCAP_REMOTE
+bool InterfaceTreeModel::isRemote(int idx)
+{
+ interface_t device = g_array_index(global_capture_opts.all_ifaces, interface_t, idx);
+ if ( device.remote_opts.src_type == CAPTURE_IFREMOTE )
+ return true;
+ return false;
+}
+#endif
+
/**
* The interface list has changed. global_capture_opts.all_ifaces may have been reloaded
* or changed with current data. beginResetModel() and endResetModel() will signalize the