From: John Crispin Date: Mon, 16 Jan 2023 10:04:30 +0000 (+0100) Subject: ubus: add the interface name to browse reply X-Git-Url: http://git.openwrt.org/feed/packages.git;openwrt-19.07?a=commitdiff_plain;h=65b3308d13de7d7975444d34389651612e2a4d38;p=project%2Fmdnsd.git ubus: add the interface name to browse reply Signed-off-by: John Crispin --- diff --git a/ubus.c b/ubus.c index 1ff816d..b9ed695 100644 --- a/ubus.c +++ b/ubus.c @@ -97,6 +97,7 @@ umdns_browse(struct ubus_context *ctx, struct ubus_object *obj, *local = '\0'; c2 = blobmsg_open_table(&b, buffer); strncat(buffer, ".local", MAX_NAME_LEN); + blobmsg_add_string(&b, "iface", s->iface->name); cache_dump_records(&b, buffer, array); cache_dump_records(&b, s->entry, array); blobmsg_close_table(&b, c2);