From 13e6c7271228cc693f14388e6732117f3e4e1e32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20H=C3=A4rdeman?= Date: Wed, 24 Sep 2025 14:52:50 +0200 Subject: [PATCH] dhcpv4: rename setup_dhcpv4_addresses() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Rename setup_dhcpv4_addresses() to dhcpv4_setup_addresses() for consistency with the rest of the function names. Signed-off-by: David Härdeman Link: https://github.com/openwrt/odhcpd/pull/264 Signed-off-by: Álvaro Fernández Rojas --- src/dhcpv4.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dhcpv4.c b/src/dhcpv4.c index d5bd947..d1d4337 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -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)) -- 2.30.2