Skip to content
Snippets Groups Projects
Commit 10cf7e96 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Make some conditional compilation consistent

parent 5ec3693b
No related branches found
No related tags found
No related merge requests found
......@@ -230,11 +230,11 @@ EXTERN const net_ipv6addr_t g_ipv6_allzeroaddr; /* An address of all zeroes */
#if defined(CONFIG_NET_ICMPv6_AUTOCONF) || defined(CONFIG_NET_ICMPv6_ROUTER)
EXTERN const net_ipv6addr_t g_ipv6_allnodes; /* All link local nodes */
EXTERN const net_ipv6addr_t g_ipv6_allrouters; /* All link local routers */
#endif
#ifdef CONFIG_NET_ICMPv6_AUTOCONF
EXTERN const net_ipv6addr_t g_ipv6_llnetmask; /* Netmask for local link address */
#endif
#endif
#endif
/****************************************************************************
* Public Function Prototypes
......
......@@ -112,6 +112,7 @@ const net_ipv6addr_t g_ipv6_allrouters = /* All link local routers */
HTONS(0x0002)
};
#ifdef CONFIG_NET_ICMPv6_AUTOCONF
/* Link-Local Address: Link-local addresses have "1111 1110 10" for the
* first ten bits followed by 54 zeroes and then the 64 bit interface
* identifier (typically derived from the data link layer address).
......@@ -121,6 +122,7 @@ const net_ipv6addr_t g_ipv6_llnetmask = /* Netmask for local link address */
{
0xffff, 0xffff, 0xffff, 0xffff, 0x0000, 0x0000, 0x0000, 0x0000
};
#endif /* CONFIG_NET_ICMPv6_AUTOCONF */
#ifdef CONFIG_NET_ETHERNET
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment