=?UTF-8?Q?Michael=20M=C3=BCller=20?=: w2_32: Ignore setting several port assignment related socket options.
Alexandre Julliard
julliard at winehq.org
Mon Feb 26 13:42:19 CST 2018
Module: wine
Branch: master
Commit: 6fa715c2709c5418a21bd50d9f3a6fed229b032f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6fa715c2709c5418a21bd50d9f3a6fed229b032f
Author: Michael Müller <michael at fds-team.de>
Date: Mon Feb 26 03:06:36 2018 +0000
w2_32: Ignore setting several port assignment related socket options.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ws2_32/socket.c | 16 ++++++++++++++++
include/winsock.h | 9 +++++++++
2 files changed, 25 insertions(+)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index e39901d..d983633 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -5886,6 +5886,22 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
break;
#endif
+ case WS_SO_RANDOMIZE_PORT:
+ FIXME("Ignoring WS_SO_RANDOMIZE_PORT\n");
+ return 0;
+
+ case WS_SO_PORT_SCALABILITY:
+ FIXME("Ignoring WS_SO_PORT_SCALABILITY\n");
+ return 0;
+
+ case WS_SO_REUSE_UNICASTPORT:
+ FIXME("Ignoring WS_SO_REUSE_UNICASTPORT\n");
+ return 0;
+
+ case WS_SO_REUSE_MULTICASTPORT:
+ FIXME("Ignoring WS_SO_REUSE_MULTICASTPORT\n");
+ return 0;
+
default:
TRACE("Unknown SOL_SOCKET optname: 0x%08x\n", optname);
SetLastError(WSAENOPROTOOPT);
diff --git a/include/winsock.h b/include/winsock.h
index 8bb067f..891fa9d 100644
--- a/include/winsock.h
+++ b/include/winsock.h
@@ -672,6 +672,10 @@ typedef struct WS(WSAData)
#define SO_TYPE 0x1008
#define SO_BSP_STATE 0x1009
+#define SO_RANDOMIZE_PORT 0x3005
+#define SO_PORT_SCALABILITY 0x3006
+#define SO_REUSE_UNICASTPORT 0x3007
+#define SO_REUSE_MULTICASTPORT 0x3008
#define IOCPARM_MASK 0x7f
#define IOC_VOID 0x20000000
@@ -707,6 +711,11 @@ typedef struct WS(WSAData)
#define WS_SO_TYPE 0x1008
#define WS_SO_BSP_STATE 0x1009
+#define WS_SO_RANDOMIZE_PORT 0x3005
+#define WS_SO_PORT_SCALABILITY 0x3006
+#define WS_SO_REUSE_UNICASTPORT 0x3007
+#define WS_SO_REUSE_MULTICASTPORT 0x3008
+
#define WS_IOCPARM_MASK 0x7f
#define WS_IOC_VOID 0x20000000
#define WS_IOC_OUT 0x40000000
More information about the wine-cvs
mailing list