]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
inet6: Don't regen temp addresses we didn't add.
authorRoy Marples <roy@marples.name>
Sat, 27 Jun 2020 12:58:44 +0000 (13:58 +0100)
committerRoy Marples <roy@marples.name>
Sat, 27 Jun 2020 12:58:44 +0000 (13:58 +0100)
Helps with interopability with OpenBSD's slaacd(8).

src/ipv6.c

index 13e6c11728c72fbed84cc1d269b094a6fccc38c8..c42b3d6df8866819cc3875a025a1149af6005ab7 100644 (file)
@@ -2130,6 +2130,7 @@ ipv6_regentempaddrs(void *arg)
        /* Mark addresses for regen so we don't infinite loop. */
        TAILQ_FOREACH(ia, &state->addrs, next) {
                if (ia->flags & IPV6_AF_TEMPORARY &&
+                   ia->flags & IPV6_AF_ADDED &&
                    !(ia->flags & IPV6_AF_STALE))
                        ia->flags |= IPV6_AF_REGEN;
                else