projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3682cab
)
ubus: show proto handler in interface status
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 31 May 2012 16:11:36 +0000
(18:11 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 31 May 2012 16:11:36 +0000
(18:11 +0200)
ubus.c
patch
|
blob
|
history
diff --git
a/ubus.c
b/ubus.c
index b31bc25d66e50d3aa5ab5a64a3c4b418bf9dbb16..438b08ca502fc3ffe1a2b3d762c3535af01f3052 100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-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);