From df7a58dab8dfc9dacd3263e73ea36ece2321db12 Mon Sep 17 00:00:00 2001 From: daichuan Date: Fri, 28 Mar 2025 15:22:28 +0800 Subject: [PATCH] net/neighbor: fix compilation with CONFIG_NET_ICMPv6_NO_STACK When CONFIG_NET_ICMPv6_NO_STACK is enabled, icmpv6_solicit should not be called. Signed-off-by: daichuan --- net/neighbor/neighbor_ethernet_out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/neighbor/neighbor_ethernet_out.c b/net/neighbor/neighbor_ethernet_out.c index 1e753a76785..143369c9da6 100644 --- a/net/neighbor/neighbor_ethernet_out.c +++ b/net/neighbor/neighbor_ethernet_out.c @@ -155,7 +155,7 @@ void neighbor_ethernet_out(FAR struct net_driver_s *dev) if (neighbor_lookup(ipaddr, &laddr) < 0) { -#ifdef CONFIG_NET_ICMPv6 +#ifdef NET_ICMPv6_HAVE_STACK /* No ARP packet if this device do not support ARP */ if (IFF_IS_NOARP(dev->d_flags)) @@ -163,7 +163,7 @@ void neighbor_ethernet_out(FAR struct net_driver_s *dev) return; } - ninfo("IPv6 Neighbor solicitation for IPv6\n"); + ninfo("IPv6 Neighbor solicitation for IPv6\n"); /* The destination address was not in our Neighbor Table, so we * overwrite the IPv6 packet with an ICMPv6 Neighbor Solicitation