André Hentschel
48a7d4d0a4
ws2_32/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-13 22:13:27 +02:00
Hans Leidekker
6d6b4bffb3
ws2_32: Enable IP_DONTFRAGMENT by default for SOCK_STREAM sockets.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-11 00:41:07 +02:00
Alexandre Julliard
5dd1bad730
ws2_32: Add fallback data for getprotobyname/number.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-10 10:02:19 +02:00
Akihiro Sagawa
f6b6c94add
ws2_32: Fix ioctlsocket(FIONREAD) with listening socket.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 12:47:17 +01:00
Akihiro Sagawa
13b66d3d1c
ws2_32/tests: Add ioctlsocket(FIONREAD) tests with listening socket.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-27 12:47:17 +01:00
Michael Müller
6fa715c270
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>
2018-02-26 11:40:33 +01:00
Zebediah Figura
80677440cf
ws2_32: Only set error codes for triggered events in WSAEnumNetworkEvents().
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:12:35 +01:00
André Hentschel
57b76f0d1a
ws2_32/tests: Test with less socket pairs.
...
about 400 lines less in output
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-03 12:01:52 +01:00
André Hentschel
67b690dba9
ws2_32/tests: Don't test WSAGetLastError() value on success.
...
This cuts the test output from around 1600 to around 1100 lines
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-03 12:01:47 +01:00
Stefan Dösinger
5c421e5fcc
ws2_32/tests: Fix the printed value in a few ok lines.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 10:17:37 +01:00
Alex Henrie
414260f356
ws2_32/tests: Initialize bytesReturned to 123456 before a failing test.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-04 11:39:21 +01:00
Alex Henrie
026751313a
ws2_32/tests: Drop socket test workarounds for Windows <= 2000.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-04 11:39:20 +01:00
Dmitry Timoshkov
9b0c222f39
server: Deliver an async io APC to any thread alive in the process.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 21:14:53 +01:00
Marcus Meissner
0e18800f39
ws2_32/tests: Avoid crashes on flaky/non-present network.
...
Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 11:53:56 +01:00
Dmitry Timoshkov
b32e8c678b
ws2_32/tests: Add some tests for sockets bound to a completion port.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-06 12:15:28 +01:00
Nikolay Sivov
4f8c3d4750
ws2_32/tests: Initialize address length argument before calling recvfrom()/WSARecvFrom() (Coverity).
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-03 13:38:30 +02:00
Alexandre Julliard
dc203dd833
ws2_32: Lock the user output buffer during receives.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-03 13:38:29 +02:00
Alexandre Julliard
1c72e594e3
ws2_32/tests: Add some tests for write watches.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-21 19:50:21 +02:00
Stefan Dösinger
a2053597cc
ws2_32: Also check the FQDN when injecting the local IP.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-30 09:03:41 +02:00
Huw Davies
2910dcea89
ws2_32: Don't return synchronously if the connection is refused.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-12 19:33:44 +09:00
Jacek Caban
eb32d1a52b
ws2_32/tests: Added GetAddrInfoExW tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-02 13:52:37 +02:00
Jacek Caban
a71c18e7fd
ws2_32: Added support for overlapped GetAddrInfoExW.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-02 13:52:37 +02:00
Jacek Caban
a17ac691bc
ws2_32: Added partial GetAddrInfoExW implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-02 13:52:37 +02:00
Jacek Caban
037e6010da
ws2_32: Return ADDRINFOEXW type from WS_getaddrinfoW.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-02 13:52:36 +02:00
Jacek Caban
001a8a4f27
ws2_32: Added FreeAddrInfoEx implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-02 13:52:36 +02:00
Jacek Caban
39fe376e92
ws2_32: Factor out GetAddrInfoW implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-02 13:52:36 +02:00
Jacek Caban
cbfa90c390
ws2_32: Added GetAddrInfoExOverlappedResult stub implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-31 19:50:54 +02:00
Kimmo Myllyvirta
32334704e8
ws2_32: Set return size when calling WSAIoctl with WS_SIO_GET_EXTENSION_FUNCTION_POINTER.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-12 11:44:41 +02:00
Jacek Caban
82e6713b75
server: Don't allow APCs on objects associated with completion port.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-10 20:51:11 +02:00
Francois Gouget
32c6d87295
ws2_32/tests: A spelling fix in a comment.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-06 18:50:47 +02:00
Alexandre Julliard
33a4d90138
ws2_32/tests: Print IP addresses as unsigned.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-27 19:12:10 +02:00
Alexandre Julliard
92b2172038
ws2_32: Use socklen_t where appropriate.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-16 13:55:19 +02:00
Owen Rudge
93323bcf6c
ws2_32/tests: Test IP address conversion in getaddrinfo.
...
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-13 10:26:37 +02:00
Owen Rudge
accf5ef594
ws2_32: Extract IPv6 address from brackets in getaddrinfo.
...
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-13 10:26:24 +02:00
Jacek Caban
3cb6d50cd6
ws2_32: Added GetAddrInfoExCancel stub implementation.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-25 13:17:59 +02:00
Jacek Caban
efdb722c17
ws2_32: Don't try to match host name in getaddrinfo if AI_NUMERICHOST hint is specified.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-16 18:33:47 +02:00
Stefan Dösinger
7a1142035d
ws2_32: Don't post completion packet if receiving fails with error immediately.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-16 12:08:52 +02:00
Bruno Jesus
1639c23cae
ws2_32: Use unsigned interface index on interface_bind_check.
...
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-11 10:17:50 -05:00
Jacek Caban
e2469b2c3d
ntdll: Remove no longer needed APC handling from APC_ASYNC_IO callbacks.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 19:59:06 +02:00
Jacek Caban
28c339031f
server: Pass APC in async_data_t.
...
Also don't pass callback pointer that's not used anymore.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 19:57:34 +02:00
Jacek Caban
f6cd817531
ws2_32: Store async callback in ws2_async_io struct.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-11 19:56:17 +02:00
Jacek Caban
35ca862025
ws2_32: Use register_async for WS2_async_send.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-05 19:15:53 +02:00
Jacek Caban
57e93b72bb
ws2_32: Use register_async for WS2_async_recv.
...
This changes behaviour in case when winsock attempts to use both
completion routine and completion value. Tests from previous patch show
that it should fail anyway. It will be possible to properly return error
once APCs are passed to server in register_async request.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-05 19:15:44 +02:00
Jacek Caban
b9f6f3896a
ws2_32/tests: Added WSARecv tests using completion function.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-05 19:15:40 +02:00
Jacek Caban
da4688ff4f
ws2_32: Added register_async helper.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-05 19:15:27 +02:00
Bruno Jesus
b60cd68308
ws2_32: Fix WSAStringToAddress parsing for IPv6.
...
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-03 09:31:14 +01:00
Bruno Jesus
49a2d1b802
ws2_32/tests: Rework WSAStringToAddress tests.
...
Current IPv6 tests were hiddenly failing in wine due to overly acceptive
ok calls.
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-03 09:31:02 +01:00
Bruno Jesus
914e401aa9
ws2_32: Turn SIO_GET_EXTENSION_FUNCTION_POINTER into a table.
...
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-02 16:09:06 +01:00
Bruno Jesus
b2c809a3d9
ws2_32: Make it clear that bit flags are in hex when tracing.
...
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-28 20:40:01 +01:00
Bruno Jesus
130452bb3d
ws2_32: Discard MSG_PARTIAL as it is supported only in message protocols.
...
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-28 09:40:20 +01:00