dhcpv4: clarify variable names in dhcpv4_handle_msg()
authorDavid Härdeman <[email protected]>
Sun, 5 Oct 2025 19:04:17 +0000 (21:04 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Tue, 21 Oct 2025 17:04:33 +0000 (19:04 +0200)
commit85717bedf8ceb688ef8a060fdda8a2ae26caf875
treed2897999a2a7db20cd46ac921f318ae4067fa4cb
parentbe864ccf9919bcfbc5c0c0274f5acf77e29b42a1
dhcpv4: clarify variable names in dhcpv4_handle_msg()

Make it clearer which variables relate to the request, and which ones relate to
the reply that we're constructing.

Also fix the missing endianness conversion for req_leasetime (not so severe
though, a bogus leasetime value will be overridden with limits that are set
per-lease or per-interface).

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