summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-04-19 07:52:47 +0100
committerRoy Marples <roy@marples.name>2020-04-19 07:52:47 +0100
commit628167b10574e83805b6a1b67b89ddc53ea231c5 (patch)
tree8818de9458134307942c4ce943ec9d2a8cad28e4 /src/ipv6nd.c
parent9823ded7ab5c3ba2650274738763521e3e277666 (diff)
downloaddhcpcd-628167b10574e83805b6a1b67b89ddc53ea231c5.tar.xz
inet6: Add 'temporary' directive to the slaac option
This instructs dhcpcd to create a temporary address for each address generated from a RA. As such, dhcpcd no longer looks at the kernel option for it as the functionality is being removed from some or never existed in the first place.
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index 6f5ce35b..1b048db9 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -1338,7 +1338,7 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx,
#ifdef IPV6_MANAGETEMPADDR
/* RFC4941 Section 3.3.3 */
if (ia->flags & IPV6_AF_AUTOCONF &&
- ip6_use_tempaddr(ia->iface->name) &&
+ ia->iface->options->options & DHCPCD_SLAACTEMP &&
IA6_CANAUTOCONF(ia))
{
if (!new_ia) {