summaryrefslogtreecommitdiffhomepage
path: root/ubus.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-11-27 14:52:31 +0100
committerSteven Barth <steven@midlink.org>2013-11-27 14:52:31 +0100
commit5e43781680f9f55e0ae7c1b681465d64882e3b8c (patch)
tree334324e04d2b4f308690aebdfc68dcae7f3be531 /ubus.c
parent199723ed921160c029a0d15fa95914ddfcdc5cb9 (diff)
IPv6: add class support to regular IPv6 addresses
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ubus.c b/ubus.c
index 9063680..340a8e4 100644
--- a/ubus.c
+++ b/ubus.c
@@ -441,6 +441,9 @@ interface_ip_dump_address_list(struct interface_ip_settings *ip, bool v6,
if (addr->valid_until)
blobmsg_add_u32(&b, "valid", addr->valid_until - now);
+ if (addr->pclass)
+ blobmsg_add_string(&b, "class", addr->pclass);
+
blobmsg_close_table(&b, a);
}
}