aboutsummaryrefslogtreecommitdiffstats
path: root/caputils/iface_monitor.h
diff options
context:
space:
mode:
authorMikael Kanstrup <mikael.kanstrup@sony.com>2019-03-07 10:47:41 +0100
committerAnders Broman <a.broman58@gmail.com>2019-03-08 07:30:04 +0000
commitb08003309b9387f4c839b6c4516da602349af177 (patch)
treeaa33e9a9f459d41baff0e117952391981ae3a095 /caputils/iface_monitor.h
parent28c5b73545d33a9eb5fef591bb908b0c0548236e (diff)
Remove the periodic interface update in wireless toolbar
The wireless toolbar retrieves the full list of network interfaces every 1.5 seconds to keep its list of interfaces updated. This not only adds unnecessary load on the system it also generates plenty of netlink traffic. When capturing packets on nlmon interfaces they are flooded with packets generated by Wireshark itself making it hard to understand the traffic that's really present on the system. Remove the periodic interface update and instead listen to network interface change events and update only when something has changed. The wireless toolbar need to know all when wireless interfaces are added/removed, not only whether an interface is 'up' or not so iface_monitor changes were also necessary. Bug: 15576 Change-Id: I8fb19fd919dfef1b6b35bf48790b105ecd2b60a8 Reviewed-on: https://code.wireshark.org/review/32350 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'caputils/iface_monitor.h')
-rw-r--r--caputils/iface_monitor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/caputils/iface_monitor.h b/caputils/iface_monitor.h
index fa5350e38c..785ab34a63 100644
--- a/caputils/iface_monitor.h
+++ b/caputils/iface_monitor.h
@@ -32,7 +32,7 @@ extern "C" {
* We also may want other events, such as address changes, so what
* we might want is "add", "remove", and "modify" as the events.
*/
-typedef void (*iface_mon_cb)(const char *iface, int up);
+typedef void (*iface_mon_cb)(const char *iface, int added, int up);
/*
* Start watching for interface changes.