mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
IPv6: Add a netmaks for the local link address
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user