dnsmasq: refuse to add empty DHCP range
authorLeon M. George <leon@georgemail.eu>
Sun, 8 May 2022 21:29:06 +0000 (23:29 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 7 Feb 2023 20:05:57 +0000 (21:05 +0100)
commite4bd3de1be8e3d49f9663a300e8b821ecca4be11
tree4e779c1fc795a85fe56c66c23c47165c69d43d1c
parent6ce9f42b9819b93717d7425ca4135afec6ea43af
dnsmasq: refuse to add empty DHCP range

Use ipcalc's return value to react to invalid range specifications.
By simply ignoring the range instead of aborting with an error code,
dnsmasq should still start when there's an error (best effort).
Aborting the config generation or working with invalid range specs leaves
dnsmasq crash-looping which is the right thing to do concerning that
particular interface but it also hinders DHCP service on other interfaces
and DNS on the router itself.

Signed-off-by: Leon M. George <leon@georgemail.eu>
package/network/services/dnsmasq/files/dnsmasq.init