[master] Correct the dhcp-cache-threshold codes treatment of hostname
authorShawn Routhier <sar@isc.org>
Tue, 26 Jul 2016 18:41:47 +0000 (11:41 -0700)
committerShawn Routhier <sar@isc.org>
Tue, 26 Jul 2016 18:41:47 +0000 (11:41 -0700)
commit3abc5708a1c225a7c69084dcb52af81ba0d7413d
treeb83ee7dd8f920b6f14d5e21c9865c96197ed9026
parent841d9a18add5ade4a6f04bc6f05ea2e632d58d97
[master] Correct the dhcp-cache-threshold codes treatment of hostname

If a lease is reused as part of dhcp-cache-threshold processing
the hostname (if it exists) needs to be copied from the temporary
lease back to the permanent lease.

Also add additional checks to see if the lease can be reused.
The host pointer, client ID and hardware address shouldn't have
changed.
RELNOTES
server/dhcp.c
server/dhcpd.conf.5