From: Roy Marples Date: Sat, 27 Jun 2020 12:58:44 +0000 (+0100) Subject: inet6: Don't regen temp addresses we didn't add. X-Git-Tag: v9.1.3~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05c1b0761da013d1bea9cc8e96cd7e09540834ba;p=thirdparty%2Fdhcpcd.git inet6: Don't regen temp addresses we didn't add. Helps with interopability with OpenBSD's slaacd(8). --- diff --git a/src/ipv6.c b/src/ipv6.c index 13e6c117..c42b3d6d 100644 --- a/src/ipv6.c +++ b/src/ipv6.c @@ -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