Extend device specific callbacks to ICMPv6 and ARP. Fix some IPv6 compilation errors that have crept in

This commit is contained in:
Gregory Nutt
2015-05-27 11:39:44 -06:00
parent 4c69ef2ad1
commit b94321cfb4
19 changed files with 251 additions and 267 deletions
+4 -4
View File
@@ -336,8 +336,8 @@ EXTERN const net_ipv6addr_t g_ipv6_llnetmask; /* Netmask for local link addres
* of:
*
* 1. An 80-bit prefix of zeros,
* 2. Te next 16 bits are one, and
* 3. he remaining, least-significant 32 bits contain the IPv4 address.
* 2. The next 16 bits are one, and
* 3. The remaining, least-significant 32 bits contain the IPv4 address.
*
* This macro encodes an IPv4 address in an IPv6 address in this fashion.
*
@@ -355,8 +355,8 @@ EXTERN const net_ipv6addr_t g_ipv6_llnetmask; /* Netmask for local link addres
{ \
memset(ipv6addr, 0, 5 * sizeof(uint16_t)); \
ipv6addr[5] = 0xffff; \
ipv6addr[6] = (uint16_t)((uint32_t)ip4addr >> 16); \
ipv6addr[7] = (uint16_t)ip4addr & 0xffff; \
ipv6addr[6] = (uint16_t)((uint32_t)ipv4addr >> 16); \
ipv6addr[7] = (uint16_t)ipv4addr & 0xffff; \
} \
while (0)
+1 -1
View File
@@ -520,7 +520,7 @@ uint16_t ipv6_chksum(FAR struct net_driver_s *dev);
* Function: netdev_ipv6_hdrlen
*
* Description:
* Provide header lenght for interface based on device
* Provide header length for interface based on device
*
* Input Parameters:
* dev Device structure pointer