diff options
| author | Roy Marples <roy@marples.name> | 2014-12-16 20:20:01 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-12-16 20:20:01 +0000 |
| commit | 0b3255ac875375112d273cca8223c22dfe3af12d (patch) | |
| tree | 09c83f35a829d35bcba36be230b15ac3e3c449b8 /ipv6nd.c | |
| parent | 3852009b98d8a5f3447c95e45cdcf7e995a22613 (diff) | |
| download | dhcpcd-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 = |
