udhcpd: keep expired leases at startup
authorChristian Lindeberg <christian.lindeberg@axis.com>
Tue, 1 Mar 2016 18:23:22 +0000 (19:23 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 1 Mar 2016 18:23:22 +0000 (19:23 +0100)
commitea2b71be66b7500cc3ddaa0f617491610ff07dc4
tree14d5c499eda33b727a265f996e5f8c0d78e0295c
parente5aba8871254d411766b9d04d89dcff4ded21e76
udhcpd: keep expired leases at startup

Let udhcpd retain the information about expired leases when restarting
so that the leases are reserved until they possibly become the oldest
expired lease.

This reduces the frequency of IP address changes for example when the
DHCP server and a group of clients, who do not store and request their
previously offered IP address across restarts, are collectively restarted
and the startup order of the clients are not guaranteed.

Signed-off-by: Christian Lindeberg <christian.lindeberg@axis.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/files.c
networking/udhcp/leases.c