summaryrefslogtreecommitdiffstats
path: root/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-02-15 09:44:58 +0000
committerRoy Marples <roy@marples.name>2016-02-15 09:44:58 +0000
commit5119f4f3d39237bfc5c3b3b5b1b0c72901fe276c (patch)
tree13fa3fe3aeb9721d60cebacfc429df712fe73a9e /ipv6nd.c
parent0b3560152cff92dbc47e1fd934954178f8c99e54 (diff)
downloaddhcpcd-5119f4f3d39237bfc5c3b3b5b1b0c72901fe276c.tar.xz
Fix compile on BSD, [7e6b5d07d5]
Diffstat (limited to 'ipv6nd.c')
-rw-r--r--ipv6nd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipv6nd.c b/ipv6nd.c
index 43df4090..3e80509e 100644
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -1007,7 +1007,8 @@ ipv6nd_handlera(struct dhcpcd_ctx *dctx, struct interface *ifp,
* temporary address also exists then
* extend the existing one rather than
* create a new one */
- if (ipv6_iffindaddr(ifp, &ap->addr) &&
+ if (ipv6_iffindaddr(ifp, &ap->addr,
+ IN6_IFF_NOTUSEABLE) &&
ipv6_settemptime(ap, 0))
new_ap = 0;
else