This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 8f4a32467d178234fcfa9ab2696cf272e4d4a53b Author: Marco Casaroli <[email protected]> AuthorDate: Thu Nov 26 11:45:03 2026 +0100 net/icmp: Select MM_IOB for the ICMP and ICMPv6 stacks. The ICMP and ICMPv6 stacks use IOBs (icmp_input.c, icmp_reply.c, icmpv6_reply.c, icmpv6_solicit.c, ...), but only the TCP and UDP stacks and the link layers selected MM_IOB. A configuration with an ICMP stack and none of these (sim:rpproxy, usrsock only, with the ICMP or ICMPv6 stack turned on) did not compile: struct iob_s undefined, iob_update_pktlen() and icmp_chksum_iob() not declared. The stacks select MM_IOB. NET_ICMP_NO_STACK and NET_ICMPv6_NO_STACK do not: they build no IOB code. Eight usrsock defconfigs with the ICMP stack set CONFIG_MM_IOB=y by hand; tools/refresh.sh removes that line now that the stack selects it. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- boards/arm/cxd56xx/spresense/configs/wifi/defconfig | 1 - boards/arm/cxd56xx/spresense/configs/wifi_smp/defconfig | 1 - boards/arm/imx6/sabre-6quad/configs/citest/defconfig | 1 - boards/arm/nrf91/nrf9160-dk/configs/modem_ns/defconfig | 1 - boards/arm/stm32f4/stm32f4discovery/configs/wifi/defconfig | 1 - boards/risc-v/qemu-rv/rv-virt/configs/citest64/defconfig | 1 - boards/sim/sim/sim/configs/citest/defconfig | 1 - boards/sim/sim/sim/configs/usrsocktest/defconfig | 1 - net/icmp/Kconfig | 1 + net/icmpv6/Kconfig | 1 + 10 files changed, 2 insertions(+), 8 deletions(-) diff --git a/boards/arm/cxd56xx/spresense/configs/wifi/defconfig b/boards/arm/cxd56xx/spresense/configs/wifi/defconfig index 53df2500306..807c20ed0c6 100644 --- a/boards/arm/cxd56xx/spresense/configs/wifi/defconfig +++ b/boards/arm/cxd56xx/spresense/configs/wifi/defconfig @@ -80,7 +80,6 @@ CONFIG_LCD_ILI9340=y CONFIG_LCD_ILI9340_IFACE0=y CONFIG_LIBC_ENVPATH=y CONFIG_LIBC_EXECFUNCS=y -CONFIG_MM_IOB=y CONFIG_MQ_MAXMSGSIZE=64 CONFIG_MTD_BYTE_WRITE=y CONFIG_MTD_PARTITION=y diff --git a/boards/arm/cxd56xx/spresense/configs/wifi_smp/defconfig b/boards/arm/cxd56xx/spresense/configs/wifi_smp/defconfig index ba5e8bcd9e5..a09b007e9c3 100644 --- a/boards/arm/cxd56xx/spresense/configs/wifi_smp/defconfig +++ b/boards/arm/cxd56xx/spresense/configs/wifi_smp/defconfig @@ -82,7 +82,6 @@ CONFIG_LCD_ILI9340=y CONFIG_LCD_ILI9340_IFACE0=y CONFIG_LIBC_ENVPATH=y CONFIG_LIBC_EXECFUNCS=y -CONFIG_MM_IOB=y CONFIG_MQ_MAXMSGSIZE=64 CONFIG_MTD_BYTE_WRITE=y CONFIG_MTD_PARTITION=y diff --git a/boards/arm/imx6/sabre-6quad/configs/citest/defconfig b/boards/arm/imx6/sabre-6quad/configs/citest/defconfig index a98a231709d..c070ed0398b 100644 --- a/boards/arm/imx6/sabre-6quad/configs/citest/defconfig +++ b/boards/arm/imx6/sabre-6quad/configs/citest/defconfig @@ -42,7 +42,6 @@ CONFIG_IMX_DDR_SIZE=1073741824 CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_INTELHEX_BINARY=y CONFIG_LIBC_EXECFUNCS=y -CONFIG_MM_IOB=y CONFIG_NET=y CONFIG_NETDEV_LATEINIT=y CONFIG_NET_USRSOCK=y diff --git a/boards/arm/nrf91/nrf9160-dk/configs/modem_ns/defconfig b/boards/arm/nrf91/nrf9160-dk/configs/modem_ns/defconfig index 9d7a68d8907..2326ca5c7fb 100644 --- a/boards/arm/nrf91/nrf9160-dk/configs/modem_ns/defconfig +++ b/boards/arm/nrf91/nrf9160-dk/configs/modem_ns/defconfig @@ -37,7 +37,6 @@ CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_INTELHEX_BINARY=y CONFIG_LIBC_FLOATINGPOINT=y CONFIG_LINE_MAX=64 -CONFIG_MM_IOB=y CONFIG_MM_REGIONS=2 CONFIG_NET=y CONFIG_NETDB_DNSCLIENT=y diff --git a/boards/arm/stm32f4/stm32f4discovery/configs/wifi/defconfig b/boards/arm/stm32f4/stm32f4discovery/configs/wifi/defconfig index 382d6f65e90..b5356f67e83 100644 --- a/boards/arm/stm32f4/stm32f4discovery/configs/wifi/defconfig +++ b/boards/arm/stm32f4/stm32f4discovery/configs/wifi/defconfig @@ -46,7 +46,6 @@ CONFIG_LIBC_ENVPATH=y CONFIG_LIBC_EXECFUNCS=y CONFIG_LINE_MAX=64 CONFIG_MMCSD=y -CONFIG_MM_IOB=y CONFIG_MM_REGIONS=2 CONFIG_NET=y CONFIG_NETDB_DNSCLIENT=y diff --git a/boards/risc-v/qemu-rv/rv-virt/configs/citest64/defconfig b/boards/risc-v/qemu-rv/rv-virt/configs/citest64/defconfig index 9f18ea34a0f..bb45d675e0c 100644 --- a/boards/risc-v/qemu-rv/rv-virt/configs/citest64/defconfig +++ b/boards/risc-v/qemu-rv/rv-virt/configs/citest64/defconfig @@ -56,7 +56,6 @@ CONFIG_LIBC_ENVPATH=y CONFIG_LIBC_EXECFUNCS=y CONFIG_LIBC_PERROR_STDOUT=y CONFIG_LIBC_STRERROR=y -CONFIG_MM_IOB=y CONFIG_NET=y CONFIG_NETDEV_LATEINIT=y CONFIG_NETUTILS_NETINIT=y diff --git a/boards/sim/sim/sim/configs/citest/defconfig b/boards/sim/sim/sim/configs/citest/defconfig index 64979529157..9cb3d2fbca3 100644 --- a/boards/sim/sim/sim/configs/citest/defconfig +++ b/boards/sim/sim/sim/configs/citest/defconfig @@ -95,7 +95,6 @@ CONFIG_LIBUV_THREAD_STACKSIZE=16384 CONFIG_LIBUV_UTILS_STACKSIZE=65536 CONFIG_LIBUV_UTILS_TEST=y CONFIG_LINE_MAX=200 -CONFIG_MM_IOB=y CONFIG_MQ_MAXMSGSIZE=128 CONFIG_NET=y CONFIG_NETDEV_IFINDEX=y diff --git a/boards/sim/sim/sim/configs/usrsocktest/defconfig b/boards/sim/sim/sim/configs/usrsocktest/defconfig index 8e60af1d59d..17947cf3516 100644 --- a/boards/sim/sim/sim/configs/usrsocktest/defconfig +++ b/boards/sim/sim/sim/configs/usrsocktest/defconfig @@ -24,7 +24,6 @@ CONFIG_FS_ROMFS=y CONFIG_IDLETHREAD_STACKSIZE=4096 CONFIG_INIT_ENTRYPOINT="init_main" CONFIG_LIBC_EXECFUNCS=y -CONFIG_MM_IOB=y CONFIG_NET=y CONFIG_NET_USRSOCK=y CONFIG_NSH_BUILTIN_APPS=y diff --git a/net/icmp/Kconfig b/net/icmp/Kconfig index 946b1f04041..428000f371d 100644 --- a/net/icmp/Kconfig +++ b/net/icmp/Kconfig @@ -29,6 +29,7 @@ menu "ICMP Networking Support" config NET_ICMP bool "Enable ICMP networking" if NET_IPv4 default NET_IPv4 + select MM_IOB if !NET_ICMP_NO_STACK ---help--- Enable minimal ICMP support. Includes built-in support for sending replies to received ECHO (ping) requests. diff --git a/net/icmpv6/Kconfig b/net/icmpv6/Kconfig index 78027935e0d..84531a346ea 100644 --- a/net/icmpv6/Kconfig +++ b/net/icmpv6/Kconfig @@ -30,6 +30,7 @@ config NET_ICMPv6 bool "Enable ICMPv6 networking" if NET_IPv6 default n select NET_MCASTGROUP + select MM_IOB if !NET_ICMPv6_NO_STACK depends on NET ---help--- Enable minimal ICMPv6 support. Includes built-in support
