X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=ubus.c;h=40c63742fe3bd36de3ec2e493ec3d4819662e329;hp=6d79a0a43054d06c52fe8586faf7c6a328130847;hb=b7d1c27b752df3e6c5dfe6a5b789d6cb0c87d0f6;hpb=c7a52ed70eaae0207d7f7e6c4a31035f5ec3757e 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;