summaryrefslogtreecommitdiff
path: root/bits
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-20 04:05:40 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-02-20 04:05:40 +0100
commit2e42333b909a39af4d98e0a20c70b5573522f7b5 (patch)
treede286780b8f9f29b7c3ae20e09de682750510486 /bits
parente507200b2888639a849126d9902442cb536ad38f (diff)
parentf23515c58bff28341c6d13cae4a70d0a5c17c3ea (diff)
Merge branch 't/SOL_IP' into refs/top-bases/tschwinge/Roger_Whittaker
Diffstat (limited to 'bits')
-rw-r--r--bits/in.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/bits/in.h b/bits/in.h
index d2d123ce7e..f7caa36a9c 100644
--- a/bits/in.h
+++ b/bits/in.h
@@ -22,6 +22,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'. */
@@ -48,6 +51,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