dhcpv4: rename setup_dhcpv4_addresses()
authorDavid Härdeman <[email protected]>
Wed, 24 Sep 2025 12:52:50 +0000 (14:52 +0200)
committerÁlvaro Fernández Rojas <[email protected]>
Fri, 3 Oct 2025 10:53:17 +0000 (12:53 +0200)
Rename setup_dhcpv4_addresses() to dhcpv4_setup_addresses() for consistency
with the rest of the function names.

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

index d5bd947a71fc07ff3f2204d374e97543475a34c2..d1d433750620c54fd74acb7a6492e30601f65f24 100644 (file)
@@ -979,7 +979,7 @@ dhcpv4_lease(struct interface *iface, enum dhcpv4_msg msg, const uint8_t *mac,
        return a;
 }
 
-static int setup_dhcpv4_addresses(struct interface *iface)
+static int dhcpv4_setup_addresses(struct interface *iface)
 {
        iface->dhcpv4_start_ip.s_addr = INADDR_ANY;
        iface->dhcpv4_end_ip.s_addr = INADDR_ANY;
@@ -1133,7 +1133,7 @@ int dhcpv4_setup_interface(struct interface *iface, bool enable)
                        goto out;
                }
 
-               if (setup_dhcpv4_addresses(iface) < 0) {
+               if (dhcpv4_setup_addresses(iface) < 0) {
                        ret = -1;
                        goto out;
                }
@@ -1167,7 +1167,7 @@ static void handle_addrlist_change(struct interface *iface)
        ip.prefix = odhcpd_netmask2bitlen(false, &iface->dhcpv4_mask);
        ip.broadcast = iface->dhcpv4_bcast;
 
-       setup_dhcpv4_addresses(iface);
+       dhcpv4_setup_addresses(iface);
 
        if ((ip.addr.in.s_addr & mask) ==
            (iface->dhcpv4_local.s_addr & iface->dhcpv4_mask.s_addr))