From f41da55f11f06361e23f11a87f179aa56565c106 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 13 Aug 2014 16:53:06 +0200 Subject: PD: don't consider deprecated assigned prefixes when calculating avilable PD size --- src/dhcpv6-ia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index 90dcaf5..2fef626 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -595,7 +595,7 @@ static void update(struct interface *iface) int minprefix = -1; for (int i = 0; i < len; ++i) { - if (addr[i].prefix > minprefix) + if (addr[i].preferred > 0 && addr[i].prefix > minprefix) minprefix = addr[i].prefix; addr[i].addr.s6_addr32[3] = 0; -- cgit v1.2.3