leasefile: do not output expired dhcpv6 leases
authorNikolay Martynov <mar.kolya@gmail.com>
Tue, 1 Jul 2014 02:42:55 +0000 (22:42 -0400)
committerNikolay Martynov <mar.kolya@gmail.com>
Tue, 1 Jul 2014 02:47:30 +0000 (22:47 -0400)
commit382dc50adfa33f55828a482773a1fcfea624a4b5
tree314f8e553805cbdc89c6ec1fd500459674b4294b
parentd8d6d784258b64d23e7f1cc0a2ee02e88377707d
leasefile: do not output expired dhcpv6 leases

Sometimes ip that is assigned to a host changes, old ip is still kept aroung as 'expired'.
This expired ip gets dumped into leasefile and is read by dnsmasq.
The result is that hotsname is resolved into expired ip and that confuses clients.
This patch prevents expired leases from being written into leasefile.
src/dhcpv6-ia.c