From b7abfa09bd4c3ecb8936244dcfe0fc720a0e03ee Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 31 May 2012 18:11:36 +0200 Subject: [PATCH] ubus: show proto handler in interface status --- ubus.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ubus.c b/ubus.c index b31bc25..438b08c 100644 --- 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); -- 2.25.1