Anton Romanov
531dcf2dd3
ws2_32: Ignore IPV6_V6ONLY setsockopt for AF_INET sockets.
...
Signed-off-by: Anton Romanov <theli.ua@gmail.com>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-12 16:52:23 +01:00
Nikolay Sivov
24dbd9de93
ws2_32: Fix build failure on Mac.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-09 11:36:45 +01:00
Bruno Jesus
c86bf9dc81
ws2_32: Implement IP_DONTFRAGMENT in [set|get]sockopt.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-08 16:06:27 +01:00
Bruno Jesus
2251aeb6d2
ws2_32: Cache the memory used for poll() calls.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-30 13:26:11 +01:00
Bruno Jesus
e33527b2a7
ws2_32: Simplify IPv4 sprintf.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-30 13:25:17 +01:00
Bruno Jesus
fa172e1ca6
ws2_32: Add IDN resolution support to GetAddrInfoW.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-30 13:25:14 +01:00
Roman Pišl
96eb36e4bb
ws2_32: Fix the default behavior of IPV6_V6ONLY.
...
Signed-off-by: Roman Pišl <rpisl@seznam.cz>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-30 17:20:47 +01:00
Jacek Caban
7e7f46f436
ws2_32: Added FreeAddrInfoExW stub.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-18 06:15:31 -07:00
Jacek Caban
93863d25fc
ws2_32: Pass completion routing to NtDeviceIoControlFile in server_ioctl_sock only if caller provided completion routine.
...
Otherwise we're always doing non-blocking calls, preventing server from
doing the right thing (and in actually doing the opposite in
WS_SIO_ADDRESS_LIST_CHANGE case).
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-13 18:21:11 +02:00
Michael Stefaniuc
8581ae8cc5
ws2_32: Use debugstr_guid() to trace GUIDs.
...
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-05 11:43:33 +02:00
Bruno Jesus
a549245dfc
ws2_32: Fix handling of POLLHUP in WSAPoll.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 11:53:17 +09:00
Bruno Jesus
6135a3fa93
ws2_32: Use correct WS_ prefixed family.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-12 11:08:19 +09:00
Alistair Leslie-Hughes
f9d4057574
ws2_32: Accept shouldn't fail when addrlen32 is NULL.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 10:06:48 +09:00
Bruno Jesus
048964b40e
ws2_32: Debug the ioctl code name whenever possible.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 10:40:54 +09:00
Philipp Hoppermann
8397e3da73
ws2_32: Implement InetNtopW.
...
Signed-off-by: Philipp Hoppermann <plata@mailbox.org>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-25 23:55:49 +09:00
Bruno Jesus
134bf22b8c
ws2_32: Ensure default route IP addresses are returned first in gethostbyname.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-20 20:06:38 +09:00
Michael Müller
ea18c740f7
ws2_32: Fix getaddrinfo with IPPROTO_IPV6 protocol.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-26 14:49:47 +09:00
Michael Müller
59ffe4e321
ws2_32: Add semi-stub for DisconnectEx.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-21 13:36:37 +09:00
Bruno Jesus
5913a107d8
ws2_32: Add WSAPoll() implementation.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-22 14:29:48 +01:00
Bruno Jesus
958ed34f16
ws2_32: Add a couple of options to sockopt debug.
...
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:22 +09:00
Jacek Caban
9d452e2ccd
ws2_32: Added GetAddrInfoExW stub.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 10:53:39 +09:00
Sebastian Lackner
5529fc736e
ws2_32: Use wine_server_release_fd to close file descriptor.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-25 15:18:39 +09:00
Erich E. Hoover
effd2c4192
ws2_32: Add asynchronous support for TransmitFile.
...
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 19:19:08 +09:00
Erich E. Hoover
f1ebc93603
ws2_32: Add support for TransmitFile headers and footers.
...
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:40 +09:00
Erich E. Hoover
4d081f36ef
ws2_32: Implement a basic synchronous TransmitFile.
...
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:40 +09:00
Erich E. Hoover
109d4b914a
ws2_32: Check for invalid parameters in TransmitFile.
...
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
2015-10-07 21:28:55 +09:00
Erich E. Hoover
23c293ae4c
ws2_32: Add stub for TransmitFile.
...
Signed-off-by: Erich E. Hoover <erich.e.hoover@wine-staging.com>
2015-10-07 21:28:55 +09:00
Michael Müller
af8c79343c
ws2_32: Implement InetPtonW function.
...
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-05 22:27:15 +09:00
Sebastian Lackner
f8aa842dea
ws2_32: Fix TRACE and specfile for inet_pton.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-05 22:27:14 +09:00
Bruno Jesus
18a02d8f41
ws2_32: Try harder to get the host name address in getaddrinfo.
2015-09-08 14:50:42 +09:00
Huw Davies
2569123d00
ws2_32: Avoid using inet_ntoa() which isn't thread-safe.
2015-08-12 22:53:22 +09:00
Charles Davis
4829989c19
ws2_32: Implement setting the keep-alive idle timeout and interval on Mac OS.
2015-08-06 23:36:02 +09:00
Bruno Jesus
b6a095b900
ws2_32: Map IPPROTO_IPV6 protocol option.
2015-07-29 21:44:03 +02:00
André Hentschel
ff01c2a196
ws2_32: Pass correct buffer length to WS_inet_ntop (Coverity).
2015-07-20 06:32:14 +02:00
Bruno Jesus
45677e173d
ws2_32: UDP sockets can write data even when unbound.
2015-06-19 17:01:05 +09:00
Bruno Jesus
9d558c5c5f
ws2_32: Add a helper to get socket type.
2015-06-19 17:00:58 +09:00
Bruno Jesus
a0df3330c3
ws2_32: Trace accepted socket.
2015-06-16 16:51:31 +09:00
Sebastian Lackner
f542a0c18b
ws2_32: Fix uninitialized memory access in do_poll (Coverity).
2015-06-08 15:30:42 +09:00
Bruno Jesus
2a1ae98b55
ws2_32: Simplify select() to make its code more reusable.
2015-05-22 18:01:33 +09:00
Bruno Jesus
898abba880
ws2_32: Trace connect() success.
2015-05-14 14:24:44 +09:00
Piotr Caban
51e77324dd
ws2_32: Fix ai_canonname buffer allocation in addrinfo_AtoW.
2015-05-11 15:19:05 +09:00
Sebastian Lackner
0d2817b161
ws2_32: Properly handle closing sockets during a select call.
...
Based on a patch by Bruno Jesus.
2015-05-05 23:15:31 +09:00
Alexandre Julliard
57e2d9ef75
ws2_32: Avoid UINT32_MAX.
2015-05-01 15:45:11 +09:00
Jacek Caban
edb780e87f
ws2_32: Use get_rcvsnd_timeo helper in getsockopt.
2015-04-28 15:33:37 +09:00
Jacek Caban
6a80fe9e6b
ws2_32: Call get_rcvsnd_timeo directly.
2015-04-28 15:33:35 +09:00
Jacek Caban
9e3a3f46fa
ws2_32: Avoid overflows in get_rcvsnd_timeo.
2015-04-28 15:33:32 +09:00
Sebastian Lackner
ea371a2446
ws2_32: Add a missing call to release_sock_fd.
2015-04-14 16:51:18 +09:00
Bruno Jesus
b69eb16816
ws2_32: Convert EBADF errno to ENOTSOCK.
2015-04-14 16:51:09 +09:00
Bruno Jesus
61ed82fc86
ws2_32: Restore the local socket address that was bound with filter for getsockname().
2015-04-09 13:26:29 +09:00
Bruno Jesus
71c60d15d3
ws2_32: Handle SO_ERROR manually in getsockopt().
...
As soon as SO_ERROR is read from getsockopt it is reset in the kernel,
when attempting a non-blocking connection the wine server reads
SO_ERROR first so when the application tries to read the value it will
end with zero.
2015-04-08 23:16:40 +09:00