Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2022-05-04 21:24:06 +0300
committerCorinna Vinschen <corinna@vinschen.de>2022-05-12 12:33:29 +0300
commit34a9570ff833a525fcb295988f9da3d357b290a9 (patch)
tree5e30a68500371bd79fa1a730bf8115cfe72db47c
parent6238b1877d3c83b8b9ed589494d0705386b7f4f7 (diff)
Cygwin: socket.h: add socket options added in recent Windows releases
Add new socket options equivalent to their Linux counterpart. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/include/cygwin/socket.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/winsup/cygwin/include/cygwin/socket.h b/winsup/cygwin/include/cygwin/socket.h
index 0ca8300d9..33f18091c 100644
--- a/winsup/cygwin/include/cygwin/socket.h
+++ b/winsup/cygwin/include/cygwin/socket.h
@@ -248,10 +248,22 @@ struct OLD_msghdr
#define IP_BLOCK_SOURCE 17
#define IP_UNBLOCK_SOURCE 18
#define IP_PKTINFO 19
+#define IP_RECVTTL 21
#define IP_UNICAST_IF 31
+#define IP_RECVTOS 40
+#define IP_MTU_DISCOVER 71
+#define IP_MTU 73
+#define IP_RECVERR 75
+
+/* IP_MTU_DISCOVER optvals */
+#define IP_PMTUDISC_WANT 0 /* Use per route hints */
+#define IP_PMTUDISC_DO 1 /* Always DF */
+#define IP_PMTUDISC_DONT 2 /* Never send DF frames */
+#define IP_PMTUDISC_PROBE 3 /* Ignore dst pmtu */
/* IPv6 options for use with getsockopt/setsockopt */
#define IPV6_HOPOPTS 1
+#define IPV6_HDRINCL 2
#define IPV6_UNICAST_HOPS 4
#define IPV6_MULTICAST_IF 9
#define IPV6_MULTICAST_HOPS 10
@@ -270,6 +282,15 @@ struct OLD_msghdr
#define IPV6_RECVRTHDR 38
#define IPV6_TCLASS 39
#define IPV6_RECVTCLASS 40
+#define IPV6_MTU_DISCOVER 71
+#define IPV6_MTU 72
+#define IPV6_RECVERR 75
+
+/* IPV6_MTU_DISCOVER optvals */
+#define IPV6_PMTUDISC_WANT 0 /* Use per route hints */
+#define IPV6_PMTUDISC_DO 1 /* Always DF */
+#define IPV6_PMTUDISC_DONT 2 /* Never send DF frames */
+#define IPV6_PMTUDISC_PROBE 3 /* Ignore dst pmtu */
/* IP agnostic options for use with getsockopt/setsockopt */
#define MCAST_JOIN_GROUP 41