summaryrefslogtreecommitdiffhomepage
path: root/interface-event.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-23 14:41:53 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-03-23 14:41:53 +0200
commitb7d1c27b752df3e6c5dfe6a5b789d6cb0c87d0f6 (patch)
treee64c47acf58a4a9eb29d20ef21537db55174df1b /interface-event.c
parentc7a52ed70eaae0207d7f7e6c4a31035f5ec3757e (diff)
move l3 device tracking to interface core to enforce proper order of address/route removal on device or interface state changes
Diffstat (limited to 'interface-event.c')
-rw-r--r--interface-event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-event.c b/interface-event.c
index 4e0773d..5ab6240 100644
--- a/interface-event.c
+++ b/interface-event.c
@@ -57,8 +57,8 @@ call_hotplug(void)
current_ev = current->hotplug_ev;
list_del_init(&current->hotplug_list);
- if (current_ev == IFEV_UP && current->l3_dev->dev)
- device = current->l3_dev->dev->ifname;
+ if (current_ev == IFEV_UP && current->l3_dev.dev)
+ device = current->l3_dev.dev->ifname;
D(SYSTEM, "Call hotplug handler for interface '%s' (%s)\n", current->name, device ? device : "none");
run_cmd(current->name, device, current_ev == IFEV_UP);