summaryrefslogtreecommitdiffstats
path: root/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2014-12-16 20:20:01 +0000
committerRoy Marples <roy@marples.name>2014-12-16 20:20:01 +0000
commit0b3255ac875375112d273cca8223c22dfe3af12d (patch)
tree09c83f35a829d35bcba36be230b15ac3e3c449b8 /ipv6nd.c
parent3852009b98d8a5f3447c95e45cdcf7e995a22613 (diff)
downloaddhcpcd-0b3255ac875375112d273cca8223c22dfe3af12d.tar.xz
Store acquired time for each IPv6 address so we can correctly offset
pltime and vltime if we need to re-add them.
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 44fdd288..1e45b3b3 100644
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -549,7 +549,7 @@ ipv6nd_addaddr(void *arg)
{
struct ipv6_addr *ap = arg;
- ipv6_addaddr(ap);
+ ipv6_addaddr(ap, NULL);
}
int
@@ -896,6 +896,7 @@ ipv6nd_handlera(struct ipv6_ctx *ctx, struct interface *ifp,
if (pi->nd_opt_pi_flags_reserved &
ND_OPT_PI_FLAG_ONLINK)
ap->flags |= IPV6_AF_ONLINK;
+ ap->acquired = rap->received;
ap->prefix_vltime =
ntohl(pi->nd_opt_pi_valid_time);
ap->prefix_pltime =