diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-05-31 18:11:36 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-05-31 18:11:36 +0200 |
commit | b7abfa09bd4c3ecb8936244dcfe0fc720a0e03ee (patch) | |
tree | b334ebdb89d559171c417382b03eea9d58df6922 /ubus.c | |
parent | 3682cabde8ba2e57e700d01ec2db0356edcc9019 (diff) |
ubus: show proto handler in interface status
Diffstat (limited to 'ubus.c')
-rw-r--r-- | ubus.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -433,6 +433,9 @@ netifd_handle_status(struct ubus_context *ctx, struct ubus_object *obj, blobmsg_add_string(&b, "l3_device", iface->l3_dev.dev->ifname); } + if (iface->proto_handler) + blobmsg_add_string(&b, "proto", iface->proto_handler->name); + dev = iface->main_dev.dev; if (dev && !(iface->proto_handler->flags & PROTO_FLAG_NODEV)) blobmsg_add_string(&b, "device", dev->ifname); |