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 acf754a77c2442c90f6cb4ef5845c7e53614dd33 Author: Marco Casaroli <[email protected]> AuthorDate: Thu Nov 26 08:41:35 2026 +0100 net/netforward: Build NET_IPFORWARD without NET_UDP. forward_ipselect() uses IPv4UDP_HDRLEN and IPv6UDP_HDRLEN from <nuttx/net/udp.h>, but netfwd_forward.c got that header only through <nuttx/net/netstats.h>, which includes it under CONFIG_NET_UDP. A configuration with CONFIG_NET_IPFORWARD, IPv4 and IPv6, and without CONFIG_NET_UDP did not compile. Include the header. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- net/netforward/netfwd_forward.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/netforward/netfwd_forward.c b/net/netforward/netfwd_forward.c index 0cb0a957ba7..2191eb86ea4 100644 --- a/net/netforward/netfwd_forward.c +++ b/net/netforward/netfwd_forward.c @@ -37,6 +37,7 @@ #include <nuttx/net/netdev.h> #include <nuttx/net/ip.h> #include <nuttx/net/netstats.h> +#include <nuttx/net/udp.h> #include "devif/devif.h" #include "netdev/netdev.h"
