mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
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 <daichuan@xiaomi.com>
This commit is contained in:
@@ -155,7 +155,7 @@ void neighbor_ethernet_out(FAR struct net_driver_s *dev)
|
|||||||
|
|
||||||
if (neighbor_lookup(ipaddr, &laddr) < 0)
|
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 */
|
/* No ARP packet if this device do not support ARP */
|
||||||
|
|
||||||
if (IFF_IS_NOARP(dev->d_flags))
|
if (IFF_IS_NOARP(dev->d_flags))
|
||||||
|
|||||||
Reference in New Issue
Block a user