From: Roy Marples Date: Thu, 7 Sep 2017 10:13:57 +0000 (+0100) Subject: A delegated prefix is not an address to be added. X-Git-Tag: v7.0.0-rc2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b27fd04b7eb62520dc51e974d61fc7b4d176a9a7;p=thirdparty%2Fdhcpcd.git A delegated prefix is not an address to be added. --- diff --git a/src/ipv6.c b/src/ipv6.c index b45d97df..634fd64b 100644 --- a/src/ipv6.c +++ b/src/ipv6.c @@ -906,6 +906,9 @@ ipv6_addaddrs(struct ipv6_addrhead *addrs) i = 0; timespecclear(&now); TAILQ_FOREACH_SAFE(ap, addrs, next, apn) { + /* A delegated prefix is not an address. */ + if (ap->flags & IPV6_AF_DELEGATEDPFX) + continue; if (ap->prefix_vltime == 0) { if (ap->flags & IPV6_AF_ADDED) { ipv6_deleteaddr(ap);