Networking: When sending ICMPv6 advertisements and solicitations, set the NOARP bit so that we don't overwrite the destination MAC address

This commit is contained in:
Gregory Nutt
2015-01-20 15:59:52 -06:00
parent 5f4ddc48ca
commit cdff532bfa
6 changed files with 23 additions and 10 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
/****************************************************************************
* net/arp/arp_out.c
*
* Copyright (C) 2007-2011, 2014 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2011, 2014-2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Based on uIP which also has a BSD style license:
@@ -144,11 +144,11 @@ void arp_out(FAR struct net_driver_s *dev)
* written into a packet socket.
*/
if ((dev->d_flags & IFF_NOARP) != 0)
if (IFF_IS_NOARP(dev->d_flags))
{
/* Clear the indication and let the packet continue on its way. */
dev->d_flags &= ~IFF_NOARP;
IFF_CLR_IPv6(dev->d_flags);
return;
}
#endif
+1 -1
View File
@@ -134,7 +134,7 @@ static uint16_t arp_send_interrupt(FAR struct net_driver_s *dev,
* flag will be cleared in arp_out().
*/
dev->d_flags |= IFF_NOARP;
IFF_SET_NOARP(dev->d_flags);
/* Don't allow any further call backs. */