dhcpv4: dhcpv4_fr_rand_delay() fixups
authorDavid Härdeman <[email protected]>
Wed, 24 Sep 2025 13:44:13 +0000 (15:44 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 7 Oct 2025 09:01:51 +0000 (11:01 +0200)
commit031e1c799f5930e2e27278a629ef2e61de91679f
treee1dd8ee4c0d4cd831e06616b7000b4c46a037e1d
parent3b3a3336470f285db2865e6c5b6fd9c974b88228
dhcpv4: dhcpv4_fr_rand_delay() fixups

Move constants to dhcpv4.h, and make their names more descriptive. Also, use
abs() instead of labs(), since "msecs" is an int.

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