From 0c0502426faca34781da59502c8a448c38261048 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Sat, 22 Dec 2012 22:13:19 +0000 Subject: Check for new SLAAC addresses when we add new prefixes. --- src/lease.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/lease.c') 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 -- cgit v1.2.1