* DHCP: don't replace the host name from static lease

When a static lease contains a host name
 and client sends its own host name:

1. don't replace the host name from static lease with it
2. send option FQDN to the client in Ack response packet
This commit is contained in:
Simon Zolin
2020-08-24 13:01:55 +03:00
parent cb6ca3b0c4
commit 719ef16b93
2 changed files with 40 additions and 12 deletions

View File

@@ -51,7 +51,6 @@ const (
LeaseChangedAdded = iota
LeaseChangedAddedStatic
LeaseChangedRemovedStatic
LeaseChangedBlacklisted
LeaseChangedDBStore
)