Don't print non bound assignments in the state file
authorHans Dedecker <dedeckeh@gmail.com>
Wed, 14 Dec 2016 21:22:22 +0000 (22:22 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 15 Dec 2016 14:17:15 +0000 (15:17 +0100)
commite05553099c47b92420c21ff30b07709dfa40a84a
tree199eb5e05966f5a96a064a4fab705ee76529ba2b
parent3af23ad72888393a863d7be545d1bd5af99ca442
Don't print non bound assignments in the state file

Set bound flag for DHCPv4 and DHCPv6 assignments when the IPv6/IPv4 address
is leased to a client.
This will prevent the printing of leases and hostname/IPv4/IPv6 address
combinations in the state file for for which the IPv4/6 address has not
been assigned.
Also this will fix the printing of assignments which have been declined
by the clients

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv4.c
src/dhcpv4.h
src/dhcpv6-ia.c
src/dhcpv6.h
src/odhcpd.h