summaryrefslogtreecommitdiffhomepage
path: root/interface-event.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-07-23 18:06:47 +0200
committerSteven Barth <steven@midlink.org>2014-07-23 18:06:47 +0200
commit7c5d5bb952cff9fe57d0f4805cc2286318868e02 (patch)
tree911d841a0fbaf4f805e2b55c33b88891c3f5a60f /interface-event.c
parent3f88c1dc2f738bc50dfa47038fde2565daf84385 (diff)
Set DEVICE for legacy ifupdate event as well
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'interface-event.c')
-rw-r--r--interface-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-event.c b/interface-event.c
index 1c8134f..24af8f5 100644
--- a/interface-event.c
+++ b/interface-event.c
@@ -83,7 +83,7 @@ call_hotplug(void)
current_ev = current->hotplug_ev;
list_del_init(&current->hotplug_list);
- if (current_ev == IFEV_UP && current->l3_dev.dev)
+ if ((current_ev == IFEV_UP || current_ev == IFEV_UPDATE) && current->l3_dev.dev)
device = current->l3_dev.dev->ifname;
D(SYSTEM, "Call hotplug handler for interface '%s', event '%s' (%s)\n",