From 6594c6b182a9065570316cf3a7a6a72a7afda150 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Sat, 14 Mar 2020 21:03:11 +0100 Subject: ubus: use dhcpv6 ia assignment flag Further align the code to use DHCPv6 assignment flags to distinguish between prefix delegation and non temporary address assignments Signed-off-by: Hans Dedecker --- src/dhcpv6-ia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dhcpv6-ia.c') diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index 836c111..1a13945 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -234,7 +234,7 @@ void dhcpv6_ia_enum_addrs(struct interface *iface, struct dhcp_assignment *c, addr = addrs[i].addr.in6; pref = addrs[i].preferred; valid = addrs[i].valid; - if (prefix == 128) { + if (c->flags & OAF_DHCPV6_NA) { if (!ADDR_ENTRY_VALID_IA_ADDR(iface, i, m, addrs)) continue; -- cgit v1.2.3