mirror of
https://github.com/apache/nuttx.git
synced 2026-08-09 06:25:09 +00:00
Networking: Need to set the IPv6 EtherType on outgoing IPv6 packets
This commit is contained in:
parent
c77426e550
commit
b51c00c8d7
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue