summaryrefslogtreecommitdiffstats
path: root/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-03-18 23:14:10 +0000
committerRoy Marples <roy@marples.name>2014-03-18 23:14:10 +0000
commitffffff26a5d7832a66a66787b3d978a3b187b708 (patch)
tree354b9dbab54d2812a7727960aa0583df8eed9086 /ipv6.c
parente2c4a256562f40e95aebb8921eca640cc4e2b000 (diff)
downloaddhcpcd-ffffff26a5d7832a66a66787b3d978a3b187b708.tar.xz
We don't want to find TENTATIVE addresses
Diffstat (limited to 'ipv6.c')
-rw-r--r--ipv6.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}