Set DEVICE for legacy ifupdate event as well
authorSteven Barth <steven@midlink.org>
Wed, 23 Jul 2014 16:06:47 +0000 (18:06 +0200)
committerSteven Barth <steven@midlink.org>
Wed, 23 Jul 2014 16:06:47 +0000 (18:06 +0200)
Signed-off-by: Steven Barth <steven@midlink.org>
interface-event.c

index 1c8134f63421e363965a2f988458abdceba65989..24af8f57ef67e76001ca819b1085e1bab7070950 100644 (file)
@@ -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",