aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2013-07-12 22:51:03 -0500
committerDavid Barksdale <amatus.amongus@gmail.com>2013-07-15 20:21:22 -0500
commit9b97977a57784d0dd8b8f8295c6252615f9ad5ad (patch)
treea7cdc8d2f7d9178447a48a5a0f759760b5091f0c /system
parent2a408cc988e83353556a910a7dfe3cf021d7cd44 (diff)
Added IN6ADDR_*_INIT macros.
Some code uses these instead of the extern symbols.
Diffstat (limited to 'system')
-rw-r--r--system/include/net/netinet/in.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/include/net/netinet/in.h b/system/include/net/netinet/in.h
index cf324f3d..fba1a7b3 100644
--- a/system/include/net/netinet/in.h
+++ b/system/include/net/netinet/in.h
@@ -55,6 +55,13 @@ extern const struct in6_addr in6addr_interfacelocal_allnodes;
extern const struct in6_addr in6addr_interfacelocal_allrouters;
extern const struct in6_addr in6addr_sitelocal_allrouters;
+#define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }
+#define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
+#define IN6ADDR_LINKLOCAL_ALLNODES_INIT \
+ { { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
+#define IN6ADDR_LINKLOCAL_ALLROUTERS_INIT \
+ { { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } }
+
struct sockaddr_in6 {
int sin6_family;
unsigned short sin6_port;