w2_32: Ignore setting several port assignment related socket options.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1ae2036f24
commit
6fa715c270
|
@ -5886,6 +5886,22 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
|
||||||
break;
|
break;
|
||||||
#endif
|
#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:
|
default:
|
||||||
TRACE("Unknown SOL_SOCKET optname: 0x%08x\n", optname);
|
TRACE("Unknown SOL_SOCKET optname: 0x%08x\n", optname);
|
||||||
SetLastError(WSAENOPROTOOPT);
|
SetLastError(WSAENOPROTOOPT);
|
||||||
|
|
|
@ -672,6 +672,10 @@ typedef struct WS(WSAData)
|
||||||
#define SO_TYPE 0x1008
|
#define SO_TYPE 0x1008
|
||||||
#define SO_BSP_STATE 0x1009
|
#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 IOCPARM_MASK 0x7f
|
||||||
#define IOC_VOID 0x20000000
|
#define IOC_VOID 0x20000000
|
||||||
|
@ -707,6 +711,11 @@ typedef struct WS(WSAData)
|
||||||
#define WS_SO_TYPE 0x1008
|
#define WS_SO_TYPE 0x1008
|
||||||
#define WS_SO_BSP_STATE 0x1009
|
#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_IOCPARM_MASK 0x7f
|
||||||
#define WS_IOC_VOID 0x20000000
|
#define WS_IOC_VOID 0x20000000
|
||||||
#define WS_IOC_OUT 0x40000000
|
#define WS_IOC_OUT 0x40000000
|
||||||
|
|
Loading…
Reference in New Issue