Networking: Need to set the IPv6 EtherType on outgoing IPv6 packets
This commit is contained in:
parent
c77426e550
commit
b51c00c8d7
@ -218,6 +218,10 @@ void icmpv6_input(FAR struct net_driver_s *dev)
|
|||||||
|
|
||||||
memcpy(eth->dest, eth->src, ETHER_ADDR_LEN);
|
memcpy(eth->dest, eth->src, ETHER_ADDR_LEN);
|
||||||
memcpy(eth->src, dev->d_mac.ether_addr_octet, 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
|
#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);
|
memcpy(eth->src, dev->d_mac.ether_addr_octet, ETHER_ADDR_LEN);
|
||||||
|
|
||||||
|
/* Set the IPv6 Ethernet type */
|
||||||
|
|
||||||
|
eth->type = HTONS(ETHTYPE_IP6);
|
||||||
#if 0
|
#if 0
|
||||||
/* No additional neighbor lookup is required on this packet.
|
/* No additional neighbor lookup is required on this packet.
|
||||||
* REVISIT: It is inappropriate to set this bit if we get here
|
* REVISIT: It is inappropriate to set this bit if we get here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user