]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
IPv6: Ignore loopback address for any global consideration
authorRoy Marples <roy@marples.name>
Sun, 1 Sep 2024 15:42:29 +0000 (16:42 +0100)
committerRoy Marples <roy@marples.name>
Sun, 1 Sep 2024 15:42:29 +0000 (16:42 +0100)
src/ipv6.c

index d4db89379057a24406e536453fd564bee484d454..f08c661c16deb25126a87faf93b5e187db456d29 100644 (file)
@@ -1136,7 +1136,8 @@ ipv6_anyglobal(struct interface *sifp)
                        continue;
 
                TAILQ_FOREACH(ia, &state->addrs, next) {
-                       if (IN6_IS_ADDR_LINKLOCAL(&ia->addr))
+                       if (IN6_IS_ADDR_LINKLOCAL(&ia->addr) ||
+                           IN6_IS_ADDR_LOOPBACK(&ia->addr))
                                continue;
                        /* Let's be optimistic.
                         * Any decent OS won't forward or accept traffic