dhcpv4: avoid setting lifetime to infinite for static assignments
authorHans Dedecker <dedeckeh@gmail.com>
Sun, 16 Feb 2020 20:15:28 +0000 (21:15 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Sun, 16 Feb 2020 20:27:16 +0000 (21:27 +0100)
commitbb07fa4b6d0d48cb2e67a4e9979412af8b05e883
tree8d01a7524f2c842ae38568575b1cb66b7d13d4c3
parent6db312a698e920ff61505ef1f42469880829774d
dhcpv4: avoid setting lifetime to infinite for static assignments

Don't set the valid lifetime to infinite for static assignments
but rather set it to the leasetime given to the client.
This makes it possible to display the leasetime for static assigments
and simplifies the code in several places

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