From 3b3a3336470f285db2865e6c5b6fd9c974b88228 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20H=C3=A4rdeman?= Date: Sat, 4 Oct 2025 19:51:44 +0200 Subject: [PATCH] ubus: improve correspondence between DHCPv[46] MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The same parameter is called "accept-reconf-nonce" in the "ipv4leases" case and "accept-reconf" in the "ipv6leases". I couldn't find anything in the OpenWrt trees which depended on either naming, but renaming the IPv4 case seems to be the safer bet since it is not part of the standard installation. Signed-off-by: David Härdeman Link: https://github.com/openwrt/odhcpd/pull/267 Signed-off-by: Álvaro Fernández Rojas --- src/ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ubus.c b/src/ubus.c index 13a74cc..5c4a99f 100644 --- a/src/ubus.c +++ b/src/ubus.c @@ -49,7 +49,7 @@ static int handle_dhcpv4_leases(struct ubus_context *ctx, _unused struct ubus_ob blobmsg_add_string_buffer(&b); blobmsg_add_string(&b, "hostname", (c->hostname) ? c->hostname : ""); - blobmsg_add_u8(&b, "accept-reconf-nonce", c->accept_fr_nonce); + blobmsg_add_u8(&b, "accept-reconf", c->accept_fr_nonce); if (c->reqopts_len > 0) { buf = blobmsg_alloc_string_buffer(&b, "reqopts", c->reqopts_len * 4 + 1); -- 2.30.2