dhcpv4: DHCP pool size is off-by-one
authorDainis Jonitis <dainis.jonitis@ubnt.com>
Mon, 26 Nov 2018 12:43:45 +0000 (14:43 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 3 May 2019 12:45:55 +0000 (14:45 +0200)
commit39e11ed2d9de55a2661c21176b74263988e932d3
tree68921ced55b0e94658bc26a9bd37e5d07df4fd69
parent4a600ce5b1f3f2d877ad68ce0cc199a122d30abd
dhcpv4: DHCP pool size is off-by-one

1. "limit" option should specify the size of dynamic pool. The dhcpv4_end
   includes the last valid pool address.
2. Also handle 7 bit host addresses when not directly specified in config file.
3. Make sure code does what documentation says and default 'start'/'limit'
   pool options to 100 and 150 respectively.

Signed-off-by: Dainis Jonitis <dainis.jonitis@ubnt.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/config.c
src/dhcpv4.c