From 7abb5379916e94316158ba508f56cc6248dbf933 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 29 Jul 2020 12:30:42 +0200 Subject: [PATCH] netifd: add interface to status messages Add the interface name to the status messages. Otherwise we cannot identify the content. Signed-off-by: John Crispin --- .../config/netifd/patches/0103-ubus-iface.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 package/network/config/netifd/patches/0103-ubus-iface.patch diff --git a/package/network/config/netifd/patches/0103-ubus-iface.patch b/package/network/config/netifd/patches/0103-ubus-iface.patch new file mode 100644 index 0000000000..f11477217a --- /dev/null +++ b/package/network/config/netifd/patches/0103-ubus-iface.patch @@ -0,0 +1,12 @@ +Index: netifd-2019-08-05-5e02f944/ubus.c +=================================================================== +--- netifd-2019-08-05-5e02f944.orig/ubus.c ++++ netifd-2019-08-05-5e02f944/ubus.c +@@ -825,6 +825,7 @@ netifd_handle_status(struct ubus_context + struct interface *iface = container_of(obj, struct interface, ubus); + + blob_buf_init(&b, 0); ++ blobmsg_add_string(&b, "interface", iface->name); + netifd_dump_status(iface); + ubus_send_reply(ctx, req, b.head); + -- 2.25.1