IPv6: Add a netmaks for the local link address

This commit is contained in:
Gregory Nutt
2015-02-05 05:43:57 -06:00
parent 453c25cdbb
commit 6f3f43d930
3 changed files with 17 additions and 7 deletions
+7 -2
View File
@@ -85,12 +85,12 @@ uint8_t g_reassembly_timer;
#ifdef CONFIG_NET_IPv6
const net_ipv6addr_t g_ipv6_alloneaddr =
const net_ipv6addr_t g_ipv6_alloneaddr = /* An address of all ones */
{
0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff
};
const net_ipv6addr_t g_ipv6_allzeroaddr =
const net_ipv6addr_t g_ipv6_allzeroaddr = /* An address of all zeroes */
{
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
};
@@ -112,6 +112,11 @@ const net_ipv6addr_t g_ipv6_allrouters = /* All link local routers */
HTONS(0x0002)
};
const net_ipv6addr_t g_ipv6_llnetmask = /* Netmask for local link address */
{
0xffff, 0xffff, 0xffff, 0xffff, 0x0000, 0x0000, 0x0000, 0x0000
};
#ifdef CONFIG_NET_ETHERNET
/* IPv6 Multi-cast Ethernet addresses. Formed from the 16-bit prefix: