diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-03-23 14:41:53 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-03-23 14:41:53 +0200 |
commit | b7d1c27b752df3e6c5dfe6a5b789d6cb0c87d0f6 (patch) | |
tree | e64c47acf58a4a9eb29d20ef21537db55174df1b /interface-event.c | |
parent | c7a52ed70eaae0207d7f7e6c4a31035f5ec3757e (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.c | 4 |
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(¤t->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); |