diff options
Diffstat (limited to 'include/linux/in6.h')
-rw-r--r-- | include/linux/in6.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/in6.h b/include/linux/in6.h index 9e2ae26fb598..34edf1f6c9a3 100644 --- a/include/linux/in6.h +++ b/include/linux/in6.h | |||
@@ -22,6 +22,10 @@ | |||
22 | 22 | ||
23 | #include <uapi/linux/in6.h> | 23 | #include <uapi/linux/in6.h> |
24 | 24 | ||
25 | /* IPv6 Wildcard Address (::) and Loopback Address (::1) defined in RFC2553 | ||
26 | * NOTE: Be aware the IN6ADDR_* constants and in6addr_* externals are defined | ||
27 | * in network byte order, not in host byte order as are the IPv4 equivalents | ||
28 | */ | ||
25 | extern const struct in6_addr in6addr_any; | 29 | extern const struct in6_addr in6addr_any; |
26 | #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } | 30 | #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } |
27 | extern const struct in6_addr in6addr_loopback; | 31 | extern const struct in6_addr in6addr_loopback; |
@@ -32,4 +36,13 @@ extern const struct in6_addr in6addr_linklocal_allnodes; | |||
32 | extern const struct in6_addr in6addr_linklocal_allrouters; | 36 | extern const struct in6_addr in6addr_linklocal_allrouters; |
33 | #define IN6ADDR_LINKLOCAL_ALLROUTERS_INIT \ | 37 | #define IN6ADDR_LINKLOCAL_ALLROUTERS_INIT \ |
34 | { { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } } | 38 | { { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } } |
39 | extern const struct in6_addr in6addr_interfacelocal_allnodes; | ||
40 | #define IN6ADDR_INTERFACELOCAL_ALLNODES_INIT \ | ||
41 | { { { 0xff,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } | ||
42 | extern const struct in6_addr in6addr_interfacelocal_allrouters; | ||
43 | #define IN6ADDR_INTERFACELOCAL_ALLROUTERS_INIT \ | ||
44 | { { { 0xff,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } } | ||
45 | extern const struct in6_addr in6addr_sitelocal_allrouters; | ||
46 | #define IN6ADDR_SITELOCAL_ALLROUTERS_INIT \ | ||
47 | { { { 0xff,5,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } } | ||
35 | #endif | 48 | #endif |