dhcpv4: improve error when a prefix is too long
authorRoss Vandegrift <ross@kallisti.us>
Mon, 16 Jan 2023 21:35:46 +0000 (13:35 -0800)
committerChristian Marangi <ansuelsmth@gmail.com>
Sat, 24 Jun 2023 20:57:09 +0000 (22:57 +0200)
commitc9e619f015fdcc520c850f8a16e5046fea9660da
treebdd745901a381f3a790f3d97857bd54341817f94
parent52112643308bb02a3b4fa2894dd7d4340ba4a237
dhcpv4: improve error when a prefix is too long

If a user tries to enable dhcpv4 on an interface with a /29, odhcp won't work.
The logs will only contain a message that doesn't help identify the problem.
It'd be idea to support any prefix with a valid pool, but at least this would
point a confused user in the right direction.

Signed-off-by: Ross Vandegrift <ross@kallisti.us>
src/dhcpv4.c