From e05553099c47b92420c21ff30b07709dfa40a84a Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Wed, 14 Dec 2016 22:22:22 +0100 Subject: 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 --- src/dhcpv6.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/dhcpv6.h') diff --git a/src/dhcpv6.h b/src/dhcpv6.h index 09ab46f..c0775f1 100644 --- a/src/dhcpv6.h +++ b/src/dhcpv6.h @@ -156,6 +156,7 @@ struct dhcpv6_assignment { struct ustream_fd managed_sock; uint32_t leasetime; + unsigned int flags; uint8_t clid_len; uint8_t clid_data[]; -- cgit v1.2.3