From: Hans Dedecker Date: Mon, 16 Jul 2018 12:31:47 +0000 (+0200) Subject: ubus: display correct prefix size for IPv6 prefix address X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=291ccbb8de51ced6d80a7417abf9d85fd8e16fbb;p=oweals%2Fnetifd.git ubus: display correct prefix size for IPv6 prefix address Make sure the displayed prefix size is identical to the kernel installed prefix size for local IPv6 prefix addresses Signed-off-by: Hans Dedecker --- diff --git a/ubus.c b/ubus.c index 96bc247..9c5b8b1 100644 --- a/ubus.c +++ b/ubus.c @@ -624,7 +624,7 @@ interface_ip_dump_prefix_assignment_list(struct interface *iface) inet_ntop(AF_INET6, &assign->addr, buf, buflen); blobmsg_add_string_buffer(&b); - blobmsg_add_u32(&b, "mask", assign->length < 64 ? 64 : assign->length); + blobmsg_add_u32(&b, "mask", assign->length); } blobmsg_close_table(&b, c);