This is an automated email from the ASF dual-hosted git repository.

acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 6fe2fb61f047f6ba9e3fb0a4b11c91d090e303be
Author: Marco Casaroli <[email protected]>
AuthorDate: Thu Nov 26 07:07:36 2026 +0100

    netutils/dhcpc: Depend on NET_IPv4.
    
    DHCP gives IPv4 addresses, and dhcpc.c calls netlib_get_ipv4addr() and
    netlib_set_ipv4addr(), which exist only with CONFIG_NET_IPv4.  The DHCP
    client and the renew command depended only on NET_UDP, so a
    configuration that turned IPv4 off (rv-virt:netnsh with CONFIG_NET_IPv6
    and without CONFIG_NET_IPv4, for example) did not compile.
    
    Make NETUTILS_DHCPC and SYSTEM_DHCPC_RENEW depend on NET_IPv4 too.
    
    Assisted-by: Claude Code:claude-opus-5-5
    Signed-off-by: Marco Casaroli <[email protected]>
---
 netutils/dhcpc/Kconfig | 2 +-
 system/dhcpc/Kconfig   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/netutils/dhcpc/Kconfig b/netutils/dhcpc/Kconfig
index 009ecaa9b..40f0049b4 100644
--- a/netutils/dhcpc/Kconfig
+++ b/netutils/dhcpc/Kconfig
@@ -6,7 +6,7 @@
 config NETUTILS_DHCPC
        bool "DHCP client"
        default n
-       depends on NET_UDP
+       depends on NET_UDP && NET_IPv4
        select NET_BINDTODEVICE if !NET_UDP_NO_STACK
        ---help---
                Enable support for the DHCP client.
diff --git a/system/dhcpc/Kconfig b/system/dhcpc/Kconfig
index bac4d3881..77f8ada8f 100644
--- a/system/dhcpc/Kconfig
+++ b/system/dhcpc/Kconfig
@@ -7,7 +7,7 @@ config SYSTEM_DHCPC_RENEW
        tristate "DHCP Address Renewal"
        default n
        select NETUTILS_DHCPC
-       depends on NET_UDP
+       depends on NET_UDP && NET_IPv4
        ---help---
                Enable the DHCP client 'renew' command
 

Reply via email to