mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
net/: Fix a sixlowpan typo bug recently introduced; Rename g_ipv6_allzeroaddre with the more meaning g_ipv6_unspecaddr since the all-zero address is the IPv6 unspecified address (sometime IN6_ADDR_ANY). Remove more inline tests for IPv6 multicast with tcommint net_is_addr_mcast() macro. Update some comments.
This commit is contained in:
@@ -324,12 +324,14 @@ int ipv6_input(FAR struct net_driver_s *dev)
|
||||
return udp_ipv6_input(dev);
|
||||
}
|
||||
|
||||
/* In other cases, the device must be assigned a non-zero IP address. */
|
||||
/* In other cases, the device must be assigned a non-zero IP address
|
||||
* (the all zero address is the "unspecified" address.
|
||||
*/
|
||||
|
||||
else
|
||||
#endif
|
||||
#ifdef CONFIG_NET_ICMPv6
|
||||
if (net_ipv6addr_cmp(dev->d_ipv6addr, g_ipv6_allzeroaddr))
|
||||
if (net_ipv6addr_cmp(dev->d_ipv6addr, g_ipv6_unspecaddr))
|
||||
{
|
||||
/* If we are configured to use ping IP address configuration and
|
||||
* hasn't been assigned an IP address yet, we accept all ICMP
|
||||
|
||||
Reference in New Issue
Block a user