summaryrefslogtreecommitdiffstats
path: root/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-02-23 10:55:09 +0000
committerRoy Marples <roy@marples.name>2015-02-23 10:55:09 +0000
commit8d6f9ae6d243ebbb7e6aa33f16403b4d421326d3 (patch)
treeff24da1b4708478e53acc2c017bb2f8c18e2911e /ipv6.c
parent4a7b20ab6c6ed159234ff297c6e1abf004f303ca (diff)
downloaddhcpcd-8d6f9ae6d243ebbb7e6aa33f16403b4d421326d3.tar.xz
Support BSDs where userland is not allowed to set temporary addresses.
Diffstat (limited to 'ipv6.c')
-rw-r--r--ipv6.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipv6.c b/ipv6.c
index abc2d859..01d1880f 100644
--- a/ipv6.c
+++ b/ipv6.c
@@ -984,8 +984,10 @@ ipv6_handleifa(struct dhcpcd_ctx *ctx,
ap, next);
}
ap->addr_flags = flags;
+#ifdef IPV6_MANAGETEMPADDR
if (ap->addr_flags & IN6_IFF_TEMPORARY)
ap->flags |= IPV6_AF_TEMPORARY;
+#endif
if (IN6_IS_ADDR_LINKLOCAL(&ap->addr)) {
#ifdef IPV6_POLLADDRFLAG
if (ap->addr_flags & IN6_IFF_TENTATIVE) {