mirror of
https://github.com/apache/nuttx.git
synced 2026-09-20 12:58:29 +08:00
Networking: Need to set the IPv6 EtherType on outgoing IPv6 packets
This commit is contained in:
@@ -218,6 +218,10 @@ void icmpv6_input(FAR struct net_driver_s *dev)
|
||||
|
||||
memcpy(eth->dest, eth->src, ETHER_ADDR_LEN);
|
||||
memcpy(eth->src, dev->d_mac.ether_addr_octet, ETHER_ADDR_LEN);
|
||||
|
||||
/* Set the IPv6 Ethernet type */
|
||||
|
||||
eth->type = HTONS(ETHTYPE_IP6);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -186,6 +186,9 @@ void icmpv6_solicit(FAR struct net_driver_s *dev,
|
||||
|
||||
memcpy(eth->src, dev->d_mac.ether_addr_octet, ETHER_ADDR_LEN);
|
||||
|
||||
/* Set the IPv6 Ethernet type */
|
||||
|
||||
eth->type = HTONS(ETHTYPE_IP6);
|
||||
#if 0
|
||||
/* No additional neighbor lookup is required on this packet.
|
||||
* REVISIT: It is inappropriate to set this bit if we get here
|
||||
|
||||
Reference in New Issue
Block a user