summaryrefslogtreecommitdiff
path: root/src/lease.c
diff options
context:
space:
mode:
authorSimon Kelley <simon@thekelleys.org.uk>2012-12-22 22:13:19 +0000
committerSimon Kelley <simon@thekelleys.org.uk>2012-12-22 22:13:19 +0000
commit0c0502426faca34781da59502c8a448c38261048 (patch)
tree66a31a05755907f481be479a13cb986f07530b2a /src/lease.c
parent7f035f58c663dec1bf508d46d2fb6f9bf152b9dc (diff)
downloaddnsmasq-0c0502426faca34781da59502c8a448c38261048.tar.gz
Check for new SLAAC addresses when we add new prefixes.
Diffstat (limited to 'src/lease.c')
-rw-r--r--src/lease.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lease.c b/src/lease.c
index 6add538..3856649 100644
--- a/src/lease.c
+++ b/src/lease.c
@@ -389,6 +389,18 @@ void lease_ping_reply(struct in6_addr *sender, unsigned char *packet, char *inte
slaac_ping_reply(sender, packet, interface, leases);
}
+void lease_update_slaac(time_t now)
+{
+ /* Called when we contruct a new RA-names context, to add putative
+ new SLAAC addresses to existing leases. */
+
+ struct dhcp_lease *lease;
+
+ if (daemon->dhcp)
+ for (lease = leases; lease; lease = lease->next)
+ slaac_add_addrs(lease, now, 0);
+}
+
#endif