odhcpd: rename [lease_cfg|dhcpv4_lease]->ipaddr to ipv4
authorDavid Härdeman <[email protected]>
Mon, 10 Nov 2025 22:03:25 +0000 (23:03 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Fri, 14 Nov 2025 16:25:21 +0000 (17:25 +0100)
commitf872ae543e6d974d1bafda35a54204b2646b5fa9
treec8d18835aa89a4c659efe47435c40733ee225290
parentaa6870be6be4e1696243b19655216b7799a5e092
odhcpd: rename [lease_cfg|dhcpv4_lease]->ipaddr to ipv4

"ipaddr" doesn't say if it's IPv4 or IPv6, and we want to be clear in a
dual-stack codebase.

And at the same time, use a struct in_addr to store the IPv4 address,
which is just less confusing.

Finally, remove all uses of "inet_ntoa()", which is deprecated.

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