]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Exlcude stale or delegated prefixes from timers.
authorRoy Marples <roy@marples.name>
Sat, 20 Feb 2016 02:16:20 +0000 (02:16 +0000)
committerRoy Marples <roy@marples.name>
Sat, 20 Feb 2016 02:16:20 +0000 (02:16 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 6e04081819c17c8e78d2838c66dd3c3284c53d77..96f370534e054055378659b3f9c4460d5d03d779 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -2999,6 +2999,9 @@ recv:
                        int all_expired = 1;
 
                        TAILQ_FOREACH(ap, &state->addrs, next) { 
+                               if (ap->flags &
+                                   (IPV6_AF_DELEGATEDPFX | IPV6_AF_STALE))
+                                       continue;
                                if (ap->prefix_vltime <= state->renew)
                                        logger(ifp->ctx, LOG_WARNING,
                                            "%s: %s will expire before renewal",