diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-02-04 14:51:20 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-02-04 14:51:20 -0600 |
commit | a9af54279a4d4b06d0c28458c3de09b47acd4f0d (patch) | |
tree | 0cb05bf3fed7b89df78ed6cfe12a19997a19871a /nuttx/arch | |
parent | 40082facd87a0264ddfa1127c66a6d2a715ad40a (diff) | |
download | px4-nuttx-a9af54279a4d4b06d0c28458c3de09b47acd4f0d.tar.gz px4-nuttx-a9af54279a4d4b06d0c28458c3de09b47acd4f0d.tar.bz2 px4-nuttx-a9af54279a4d4b06d0c28458c3de09b47acd4f0d.zip |
Networking: Break out Ethernet definitions into a separate file; add IPv6 multicast addresses as common globals, Ethernet drivers need to filter link-local, all nodes Ethernet address
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_eth.c | 10 | ||||
-rw-r--r-- | nuttx/arch/arm/src/tiva/tm4c_ethernet.c | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_eth.c b/nuttx/arch/arm/src/stm32/stm32_eth.c index 7b451020f..d41e25ee6 100644 --- a/nuttx/arch/arm/src/stm32/stm32_eth.c +++ b/nuttx/arch/arm/src/stm32/stm32_eth.c @@ -3527,6 +3527,16 @@ static void stm32_ipv6multicast(FAR struct stm32_ethmac_s *priv) mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); (void)stm32_addmac(dev, mac); + +#ifdef CONFIG_NET_ICMPv6_AUTOCONF + /* Add the IPv6 all link-local nodes Ethernet address. This is the + * address that we expect to receive ICMPv6 Router Advertisement + * packets. + */ + + (void)stm32_addmac(dev, g_ipv6_ethallnodes.ether_addr_octet); + +#endif /* CONFIG_NET_ICMPv6_AUTOCONF */ } #endif /* CONFIG_NET_ICMPv6 */ diff --git a/nuttx/arch/arm/src/tiva/tm4c_ethernet.c b/nuttx/arch/arm/src/tiva/tm4c_ethernet.c index 7f63144d8..71bad0408 100644 --- a/nuttx/arch/arm/src/tiva/tm4c_ethernet.c +++ b/nuttx/arch/arm/src/tiva/tm4c_ethernet.c @@ -3985,6 +3985,16 @@ static void tiva_ipv6multicast(FAR struct tiva_ethmac_s *priv) mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); (void)tiva_addmac(dev, mac); + +#ifdef CONFIG_NET_ICMPv6_AUTOCONF + /* Add the IPv6 all link-local nodes Ethernet address. This is the + * address that we expect to receive ICMPv6 Router Advertisement + * packets. + */ + + (void)tiva_addmac(dev, g_ipv6_ethallnodes.ether_addr_octet); + +#endif /* CONFIG_NET_ICMPv6_AUTOCONF */ } #endif /* CONFIG_NET_ICMPv6 */ |