treewide: simplify dhcp leasetime checking
authorHans Dedecker <dedeckeh@gmail.com>
Sun, 19 Feb 2017 21:00:38 +0000 (22:00 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Sun, 19 Feb 2017 21:15:57 +0000 (22:15 +0100)
commite437ce9422c2f92752be5b6b3fd453e099a98a7e
treed9a87c78ad54ad215c6bfb9210f73cd2c1d0a3a7
parent942fb33d3017e8769a7354ee008daf0f31a40fe2
treewide: simplify dhcp leasetime checking

Set dhcp leasetim to 43200 seconds for all interfaces independant
if dhcpv4 is enabled for an interface. Minimum allowed leasetime
is 60 seconds when parsing leastime configuration; this allows to
clean up the awkward leasetime checks on different places in the code

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