From: Samuel Thibault Date: Thu, 10 May 2012 19:47:00 +0000 (-0700) Subject: Hurd: Add SOL_IP, SOL_IPV6, SOL_ICMPV6 X-Git-Tag: upstream/2.20~4065 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6178c55bdbb1e434b594e5f8563b6948f8f3edc0;p=platform%2Fupstream%2Flinaro-glibc.git Hurd: Add SOL_IP, SOL_IPV6, SOL_ICMPV6 --- diff --git a/ChangeLog b/ChangeLog index bd66d5a..976aa1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-05-10 Samuel Thibault + + * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros. + 2012-05-10 Thomas Schwinge * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise 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 directly; include 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