diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2016-12-14 22:22:22 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2016-12-15 15:17:15 +0100 |
commit | e05553099c47b92420c21ff30b07709dfa40a84a (patch) | |
tree | 199eb5e05966f5a96a064a4fab705ee76529ba2b /src/dhcpv4.h | |
parent | 3af23ad72888393a863d7be545d1bd5af99ca442 (diff) |
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>
Diffstat (limited to 'src/dhcpv4.h')
-rw-r--r-- | src/dhcpv4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dhcpv4.h b/src/dhcpv4.h index 6c4dd50..cd6c978 100644 --- a/src/dhcpv4.h +++ b/src/dhcpv4.h @@ -79,6 +79,7 @@ struct dhcpv4_assignment { time_t valid_until; uint8_t hwaddr[6]; uint32_t leasetime; + unsigned int flags; char hostname[]; }; |