aboutsummaryrefslogtreecommitdiff
path: root/system/include
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2013-06-24 20:06:44 -0500
committerDavid Barksdale <amatus.amongus@gmail.com>2013-06-24 22:09:54 -0500
commit59651e35af45f1c0420c552d899a237ff9db0cff (patch)
tree881bcbe4cf37269dff28fc90c9715eb713eb8aad /system/include
parentaae0d8cbc4749440a4b5321ac7cd1ae9fe69baca (diff)
Add some IPv6 stuff to netinet/in.h.
Diffstat (limited to 'system/include')
-rw-r--r--system/include/net/netinet/in.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/system/include/net/netinet/in.h b/system/include/net/netinet/in.h
index 394df678..f4832d52 100644
--- a/system/include/net/netinet/in.h
+++ b/system/include/net/netinet/in.h
@@ -23,6 +23,7 @@ enum {
#define INET6_ADDRSTRLEN 46
#define INADDR_ANY 0
+#define INADDR_LOOPBACK 0x7f000001 /* 127.0.0.1 */
struct in_addr {
unsigned long s_addr;
@@ -46,6 +47,14 @@ struct in6_addr {
#define s6_addr32 _u._s6_addr32
};
+extern const struct in6_addr in6addr_any;
+extern const struct in6_addr in6addr_loopback;
+extern const struct in6_addr in6addr_linklocal_allnodes;
+extern const struct in6_addr in6addr_linklocal_allrouters;
+extern const struct in6_addr in6addr_interfacelocal_allnodes;
+extern const struct in6_addr in6addr_interfacelocal_allrouters;
+extern const struct in6_addr in6addr_sitelocal_allrouters;
+
struct sockaddr_in6 {
short sin6_family;
short sin6_port;