summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-02-06 14:59:24 +0000
committerRoy Marples <roy@marples.name>2020-02-06 15:01:17 +0000
commit21b9ce9f22fa944f654530c53f1c884aa5c0fd21 (patch)
tree704188c7fc9b198d6a5e8eee4324c86c1bdb87aa /src/ipv6nd.c
parent8739d809550a0a0858312eb7048eb1a46058dc90 (diff)
downloaddhcpcd-21b9ce9f22fa944f654530c53f1c884aa5c0fd21.tar.xz
inet6: Swap between DISCOVER and INFORM better
Most of the time this will be dictated by the RA, but let our config decide as well.
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipv6nd.c b/src/ipv6nd.c
index 58da9562..eeea69af 100644
--- a/src/ipv6nd.c
+++ b/src/ipv6nd.c
@@ -1115,6 +1115,8 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx,
* routers like to decrease the advertised valid and preferred times
* in accordance with the own prefix times which would result in too
* much needless log spam. */
+ if (rap->willexpire)
+ new_data = true;
logfunc = new_data || !rap->isreachable ? loginfox : logdebugx,
logfunc("%s: Router Advertisement from %s", ifp->name, rap->sfrom);