From: Álvaro Fernández Rojas Date: Sat, 6 Dec 2025 12:32:38 +0000 (+0100) Subject: config: fix default value for allow_slaac_only X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=05aa750fbe447e166c9be380ae8730744fb634be;p=project%2Fodhcp6c.git config: fix default value for allow_slaac_only As reported by @nxhack at https://github.com/openwrt/odhcp6c/issues/131, allow_slaac_only was assigned an incorrect default value when it was moved from odhcp6c.c to config.c. Fixes: 1048fc4fb622 ("reconfigure: move all configuration functions to a new file") Signed-off-by: Álvaro Fernández Rojas --- diff --git a/src/config.c b/src/config.c index 18b725a..f7977b4 100644 --- a/src/config.c +++ b/src/config.c @@ -85,7 +85,7 @@ void config_dhcp_reset(void) { config_dhcp.ia_na_mode = IA_MODE_TRY; config_dhcp.ia_pd_mode = IA_MODE_NONE; config_dhcp.client_options = DHCPV6_CLIENT_FQDN | DHCPV6_ACCEPT_RECONFIGURE; - config_dhcp.allow_slaac_only = -1; + config_dhcp.allow_slaac_only = 0; config_dhcp.oro_user_cnt = 0; memset(config_dhcp.message_rtx, 0, sizeof(config_dhcp.message_rtx)); config_dhcp.message_rtx[CONFIG_DHCP_SOLICIT].delay_max = DHCPV6_MAX_DELAY;