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:
Diffstat (limited to 'winsup/cygwin/fhandler_socket_inet.cc')
-rw-r--r--winsup/cygwin/fhandler_socket_inet.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_socket_inet.cc b/winsup/cygwin/fhandler_socket_inet.cc
index 18ee42260..ad17f48f1 100644
--- a/winsup/cygwin/fhandler_socket_inet.cc
+++ b/winsup/cygwin/fhandler_socket_inet.cc
@@ -23,6 +23,7 @@
#endif
#include <w32api/ws2tcpip.h>
#include <w32api/mswsock.h>
+#include <netinet/tcp.h>
#include <unistd.h>
#include <asm/byteorder.h>
#include <sys/socket.h>
@@ -1682,6 +1683,20 @@ fhandler_socket_inet::setsockopt (int level, int optname, const void *optval,
}
default:
break;
+
+ case IPPROTO_TCP:
+ switch (optname)
+ {
+ case TCP_MAXSEG:
+ /* Winsock doesn't support setting TCP_MAXSEG, only requesting it
+ via getsockopt. Make this a no-op. */
+ ignore = true;
+ break;
+
+ default:
+ break;
+ }
+ break;
}
/* Call Winsock setsockopt (or not) */