summaryrefslogtreecommitdiffhomepage
path: root/ubus.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 /ubus.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 'ubus.c')
-rw-r--r--ubus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubus.c b/ubus.c
index 6d79a0a..40c6374 100644
--- a/ubus.c
+++ b/ubus.c
@@ -303,7 +303,7 @@ netifd_handle_status(struct ubus_context *ctx, struct ubus_object *obj,
if (iface->state == IFS_UP) {
time_t cur = system_get_rtime();
blobmsg_add_u32(&b, "uptime", cur - iface->start_time);
- blobmsg_add_string(&b, "l3_device", iface->l3_dev->dev->ifname);
+ blobmsg_add_string(&b, "l3_device", iface->l3_dev.dev->ifname);
}
dev = iface->main_dev.dev;