dhcpv4: Keep DHCPv4 assignment lifetime value in sync with assigned leasetime
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 17 Nov 2016 15:11:57 +0000 (16:11 +0100)
committerJohn Crispin <john@phrozen.org>
Mon, 21 Nov 2016 10:35:42 +0000 (11:35 +0100)
commit44ca70ae6f0fb649cef47d9160ec1ee13e7844f1
tree9110305f7a3e76f81a8c89befed63936c0297885
parent6c3bc0141dacc88992583d6f2cdc8a360df7422d
dhcpv4: Keep DHCPv4 assignment lifetime value in sync with assigned leasetime

Keep the valid_until assignment parameter in sync with the
leasetime assigned to the DHCP client when handling DHCP
request message.
This guarantees the contents of the ubus dhcp ipv4leases valid
parameter is in sync with the client leasetime

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv4.c