From: Roy Marples Date: Sat, 7 Mar 2015 16:31:22 +0000 (+0000) Subject: If the SLA is zero and the required prefix length is zero, just use the X-Git-Tag: v6.8.0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=759337f44e9cea51fb0d2c11e275bd7511b6785a;p=thirdparty%2Fdhcpcd.git If the SLA is zero and the required prefix length is zero, just use the delegated prefix length. --- diff --git a/dhcp6.c b/dhcp6.c index 073294fe..16cf3d90 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -419,7 +419,10 @@ dhcp6_delegateaddr(struct in6_addr *addr, struct interface *ifp, } } else if (sla->prefix_len == 0) { asla.sla = sla->sla; - asla.prefix_len = 0; + if (asla.sla == 0) + asla.prefix_len = prefix->prefix_len; + else + asla.prefix_len = 0; sla = &asla; } if (sla->prefix_len == 0) {