aboutsummaryrefslogtreecommitdiff
path: root/bits/in.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-05-10 12:47:00 -0700
committerRoland McGrath <roland@hack.frob.com>2012-05-10 15:57:22 -0700
commit6178c55bdbb1e434b594e5f8563b6948f8f3edc0 (patch)
treec295f3a773d0790f195e410a96ef9f54a0c4d742 /bits/in.h
parent6f080c2fcffac1bb8626b8d143dba57a37abb071 (diff)
downloadglibc-6178c55bdbb1e434b594e5f8563b6948f8f3edc0.zip
glibc-6178c55bdbb1e434b594e5f8563b6948f8f3edc0.tar.gz
glibc-6178c55bdbb1e434b594e5f8563b6948f8f3edc0.tar.bz2
Hurd: Add SOL_IP, SOL_IPV6, SOL_ICMPV6
Diffstat (limited to 'bits/in.h')
-rw-r--r--bits/in.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bits/in.h b/bits/in.h
index bb14b02..db93057 100644
--- a/bits/in.h
+++ b/bits/in.h
@@ -21,6 +21,9 @@
# error "Never use <bits/in.h> directly; include <netinet/in.h> instead."
#endif
+/* To select the IP level. */
+#define SOL_IP 0
+
/* Options for use with `getsockopt' and `setsockopt' at the IP level.
The first word in the comment at the right is the data type used;
"bool" means a boolean value stored in an `int'. */
@@ -47,6 +50,10 @@ struct ip_opts
char ip_opts[40]; /* Actually variable in size. */
};
+/* Socket-level values for IPv6. */
+#define SOL_IPV6 41
+#define SOL_ICMPV6 58
+
/* IPV6 socket options. */
#define IPV6_ADDRFORM 1
#define IPV6_PKTINFO 2