From: Roy Marples Date: Tue, 18 Mar 2014 23:14:10 +0000 (+0000) Subject: We don't want to find TENTATIVE addresses X-Git-Tag: v6.4.0~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffffff26a5d7832a66a66787b3d978a3b187b708;p=thirdparty%2Fdhcpcd.git We don't want to find TENTATIVE addresses --- diff --git a/ipv6.c b/ipv6.c index 1d13f64e..0efadae2 100644 --- a/ipv6.c +++ b/ipv6.c @@ -633,7 +633,8 @@ ipv6_findaddr(const struct interface *ifp, const struct in6_addr *addr) !(ap->addr_flags & IN6_IFF_NOTUSEABLE)) return ap; } else { - if (IN6_ARE_ADDR_EQUAL(&ap->addr, addr)) + if (IN6_ARE_ADDR_EQUAL(&ap->addr, addr) && + !(ap->addr_flags & IN6_IFF_TENTATIVE)) return ap; } }