diff options
author | sbyx <steven@midlink.org> | 2014-07-01 09:07:02 +0200 |
---|---|---|
committer | sbyx <steven@midlink.org> | 2014-07-01 09:07:02 +0200 |
commit | 78aef4acbc692ef61169e3f26bb69d0f3574b1cd (patch) | |
tree | 314f8e553805cbdc89c6ec1fd500459674b4294b /src/dhcpv6-ia.c | |
parent | d8d6d784258b64d23e7f1cc0a2ee02e88377707d (diff) | |
parent | 382dc50adfa33f55828a482773a1fcfea624a4b5 (diff) |
Merge pull request #17 from mar-kolya/master
leasefile: do not output expired dhcpv6 leases
Diffstat (limited to 'src/dhcpv6-ia.c')
-rw-r--r-- | src/dhcpv6-ia.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index 181973d..fe47130 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -258,6 +258,8 @@ void dhcpv6_write_statefile(void) for (size_t i = 0; i < addrlen; ++i) { if (addrs[i].prefix > 96) continue; + if (c->valid_until <= now) + continue; addr = addrs[i].addr; if (c->length == 128) |