dhcpv4: simplify random address selection
authorDavid Härdeman <[email protected]>
Sat, 11 Oct 2025 09:25:26 +0000 (11:25 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 17 Nov 2025 14:28:48 +0000 (15:28 +0100)
commit038a7bbfc30db68586d5fdd7727ce34ffba66353
tree6b6263c20393d68998ee6656fa3537225c85f97f
parent7313ba262b762e91025d00b9b6e6391a2f909d02
dhcpv4: simplify random address selection

Simplify the generation of random addresses, and make the code easier
to follow, by using the same approach as in dhcpv6.

Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/313
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv4.c