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/odhcpd.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/odhcpd.h')
-rw-r--r-- | src/odhcpd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/odhcpd.h b/src/odhcpd.h index e322ebd..4b77313 100644 --- a/src/odhcpd.h +++ b/src/odhcpd.h @@ -84,6 +84,10 @@ enum odhcpd_mode { }; +enum odhcpd_assignment_flags { + OAF_BOUND = (1 << 0), +}; + struct config { bool legacy; char *dhcp_cb; |