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:
Gregory Nutt
2018-06-23 12:53:27 -06:00
parent 5bb216fb90
commit a0e169ad7b
19 changed files with 85 additions and 63 deletions
+4 -2
View File
@@ -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