mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Hurd: Add SOL_IP, SOL_IPV6, SOL_ICMPV6
This commit is contained in:
committed by
Roland McGrath
parent
6f080c2fcf
commit
6178c55bdb
@ -1,3 +1,7 @@
|
|||||||
|
2012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||||
|
|
||||||
|
* bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
|
||||||
|
|
||||||
2012-05-10 Thomas Schwinge <thomas@schwinge.name>
|
2012-05-10 Thomas Schwinge <thomas@schwinge.name>
|
||||||
|
|
||||||
* sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
|
* sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
|
||||||
|
@ -21,6 +21,9 @@
|
|||||||
# error "Never use <bits/in.h> directly; include <netinet/in.h> instead."
|
# error "Never use <bits/in.h> directly; include <netinet/in.h> instead."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* To select the IP level. */
|
||||||
|
#define SOL_IP 0
|
||||||
|
|
||||||
/* Options for use with `getsockopt' and `setsockopt' at the IP level.
|
/* 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;
|
The first word in the comment at the right is the data type used;
|
||||||
"bool" means a boolean value stored in an `int'. */
|
"bool" means a boolean value stored in an `int'. */
|
||||||
@ -47,6 +50,10 @@ struct ip_opts
|
|||||||
char ip_opts[40]; /* Actually variable in size. */
|
char ip_opts[40]; /* Actually variable in size. */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Socket-level values for IPv6. */
|
||||||
|
#define SOL_IPV6 41
|
||||||
|
#define SOL_ICMPV6 58
|
||||||
|
|
||||||
/* IPV6 socket options. */
|
/* IPV6 socket options. */
|
||||||
#define IPV6_ADDRFORM 1
|
#define IPV6_ADDRFORM 1
|
||||||
#define IPV6_PKTINFO 2
|
#define IPV6_PKTINFO 2
|
||||||
|
Reference in New Issue
Block a user