From eb2a20924afd979feb485298111ced679de42aa0 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 19 Mar 2013 13:21:41 +0100 Subject: [PATCH] Also read addresses from "ipv6-prefix-assignment" ifstatus table --- ubus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ubus.c b/ubus.c index 0647bc3..16c8c49 100644 --- a/ubus.c +++ b/ubus.c @@ -113,7 +113,8 @@ invoke_cb(struct ubus_request *req, int type, struct blob_attr *msg) else if (!dev && !strcmp(blobmsg_name(cur), "ipv4-address")) parse_subnets(da->addr, FW3_FAMILY_V4, blobmsg_data(cur), blobmsg_data_len(cur)); - else if (!dev && !strcmp(blobmsg_name(cur), "ipv6-address")) + else if (!dev && (!strcmp(blobmsg_name(cur), "ipv6-address") || + !strcmp(blobmsg_name(cur), "ipv6-prefix-assignment"))) parse_subnets(da->addr, FW3_FAMILY_V6, blobmsg_data(cur), blobmsg_data_len(cur)); } -- 2.25.1