Commit Graph

364 Commits

Author SHA1 Message Date
Bruno Jesus 038399fcdd ws2_32: getaddrinfo must SetLastError on success or failure. 2015-01-20 11:11:43 +01:00
Bruno Jesus ab1eee505b ws2_32: Ensure recv functions set last error to zero when they succeed. 2015-01-13 17:52:04 +01:00
Bruno Jesus 35a887acc5 ws2_32/tests: Show that send/recv functions set last error to zero on success. 2015-01-09 11:50:08 +01:00
Bruno Jesus 9d9e1cc9ae ws2_32: Ensure an IPv6 is not recognized as IPv4 in WSAStringToAddress. 2014-12-31 11:37:18 +01:00
Bruno Jesus 1c4cb63036 ws2_32: Implement getsockopt(SO_BSP_STATE). 2014-12-09 20:05:58 +01:00
Bruno Jesus d7a8beb0f7 ws2_32: Filter unset bits when argument is smaller than 32 bits. 2014-12-05 20:47:40 +01:00
Bruno Jesus 14324fec97 ws2_32/tests: Add SO_BSP_STATE tests. 2014-12-05 20:47:30 +01:00
Sebastian Lackner d57ccd54f8 ws2_32/tests: Fix several copy and paste errors. 2014-12-01 11:11:05 +01:00
Piotr Caban 6d5b7c7344 ws2_32/tests: Add more select tests. 2014-11-28 19:18:15 +01:00
Sebastian Lackner 69cc90957c ws2_32/tests: Wait for thread termination before cleaning up winsock. 2014-11-20 22:34:48 +09:00
Bruno Jesus 344bc6d72b ws2_32: Add tests and implement inet_pton.
Special thanks to Erich Hoover.
2014-11-04 13:28:16 +09:00
Henri Verbeet 32724def72 ws2_32: Return an error if "out_buff" is NULL for SIO_ADDRESS_LIST_QUERY. 2014-10-07 20:22:03 +02:00
Henri Verbeet b914a6461b ws2_32: Return WSAEINVAL if "out_size" is smaller than the minimum size for SIO_ADDRESS_LIST_QUERY. 2014-10-06 19:38:12 +02:00
Henri Verbeet 4e6ebd633a ws2_32: Return the needed buffer size for SIO_ADDRESS_LIST_QUERY. 2014-10-06 19:38:10 +02:00
Bruno Jesus e3998e3988 ws2_32/tests: Wait for thread test before returning (valgrind). 2014-06-16 09:39:29 +02:00
Bruno Jesus 79d29e2347 ws2_32/tests: Initialize a test buffer (valgrind). 2014-06-12 18:05:21 +02:00
Bruno Jesus 843ef11eb8 ws2_32: Return the correct error if SO_REUSEADDR is set in bind error. 2014-05-09 14:17:00 +02:00
Bruno Jesus eda14e611c ws2_32/tests: Test more the behavior of SO_REUSEADDR. 2014-05-07 10:25:58 +02:00
Austin English 171748da4d ws2_32: Skip some tests on broken ISPs. 2014-03-24 11:40:44 +01:00
Hans Leidekker 77f5f01bbb ws2_32/tests: Mark some test results on Windows 8 as broken. 2014-03-07 14:11:35 +01:00
André Hentschel b05a3e999c ws2_32/tests: Get rid of the do_oob_send helper function. 2014-03-06 13:38:35 +01:00
André Hentschel ec7c5907f7 ws2_32/tests: Test OOB data more sequential by sending bidirectional. 2014-03-06 13:38:35 +01:00
Bruno Jesus de0c46fd52 ws2_32/tests: Add W2K error values as valid. 2014-02-22 08:41:34 -06:00
Bruno Jesus 5782bac2a0 ws2_32: Fix conversion of address in GetAddrInfoW. 2014-02-20 13:28:46 +01:00
Bruno Jesus da16d6b660 ws2_32: Fix edge case for getaddrinfo in BSD and OSX. 2014-02-17 11:28:20 +01:00
Bruno Jesus 3c64a7c4e2 ws2_32: Fix some parameters checking in AcceptEx. 2014-02-06 17:08:13 +01:00
Bruno Jesus 7a8d43043a ws2_32/tests: Fix AcceptEx tests related to address length. 2014-02-05 13:49:26 +01:00
Bruno Jesus 84d91bb93d ws2_32/tests: Add missing closesocket calls (Coverity). 2014-01-27 14:13:53 +01:00
Francois Gouget e8e97f165d ws2_32/tests: Add a trailing '\n' to a win_skip() call. 2014-01-10 18:14:54 +01:00
Bruno Jesus 0d965c14e9 ws2_32/tests: Add broken for a WSALookupServiceBegin test in NT. 2014-01-09 12:12:52 +01:00
Bruno Jesus a1e2294006 ws2_32/tests: Show that the last WSACleanup must destroy sockets. 2014-01-07 10:47:13 +01:00
Bruno Jesus 7e4d075ec1 ws2_32/tests: Add some FIONREAD tests. 2014-01-07 10:47:06 +01:00
Bruno Jesus b461fa4468 ws2_32/tests: Add some WSALookupService[Begin|Next|End] tests. 2014-01-06 16:59:06 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Bruno Jesus 719715c774 ws2_32: Cope with invalid hints in getaddrinfo/GetAddrInfoW. 2013-12-31 12:24:30 +01:00
Bruno Jesus 3eb39dc08e ws2_32: Add extended IPX protocol support. 2013-12-31 12:23:52 +01:00
Bruno Jesus b8e9bbd4d0 ws2_32/tests: Fix some test message typos. 2013-12-27 20:28:16 +01:00
Dmitry Timoshkov c66c14ddda ws2_32: Move the buffer used by inet_ntoa into the per-thread data. 2013-12-26 14:35:14 +01:00
Dmitry Timoshkov 3a56f9b956 ws2_32/tests: Add a test for inet_ntoa called from two threads. 2013-12-26 14:35:13 +01:00
Frédéric Delanoy 5ba7f79bad Assorted spelling fixes. 2013-12-03 19:41:53 +01:00
André Hentschel f8c416b219 ws2_32/tests: Enable compilation with -D__WINESRC__. 2013-11-08 12:47:25 +01:00
Frédéric Delanoy 5274f855e3 ws2_32/tests: Use BOOL type where appropriate. 2013-10-09 10:08:29 +02:00
Hans Leidekker 1422a56667 ws2_32: Always return the source address from WSAAccept. 2013-10-02 20:18:23 +02:00
Hans Leidekker 260119e682 ws2_32: Return an error from accept if the address buffer is too small. 2013-10-02 20:18:23 +02:00
Hans Leidekker 9530a06fed ws2_32: Add some tests for getpeername. 2013-10-02 20:18:23 +02:00
Hans Leidekker 14a092a336 ws2_32: Always clear res on error in getaddrinfo/GetAddrInfoW. 2013-10-02 20:18:23 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Bruno Jesus adb8fb115a ws2_32: Implement WSASendMsg(). 2013-10-01 10:56:10 +02:00
Bruno Jesus d811747a14 ws2_32/tests: Fix an ok() call comment. 2013-09-30 11:28:50 +02:00
André Hentschel b605553e28 ws2_32/tests: Don't test function directly when reporting WSAGetLastError(). 2013-09-23 11:53:46 +02:00
Bruno Jesus d0009573ee ws2_32: Fix some parameters checking in AcceptEx. 2013-09-23 11:53:34 +02:00
Bruno Jesus 68377494c6 ws2_32: ConnectEx should not work on unbound socket. 2013-09-20 11:26:48 +02:00
Bruno Jesus 5dcf368e1b ws2_32/tests: Mark WinNT result as broken. 2013-09-19 19:50:14 +02:00
Bruno Jesus 2034f51598 ws2_32: Do not allow socket creation if WSAStartup was not called. 2013-09-17 19:07:54 +02:00
Bruno Jesus 0298165bea ws2_32: Filter invalid socket parameters and return the appropriate error. 2013-09-17 19:07:49 +02:00
Bruno Jesus 35e54fa59b ws2_32: Auto detect the socket type and family based on the protocol. 2013-09-17 19:07:29 +02:00
Bruno Jesus 8e29fcddb9 ws2_32: Use the struct information when the parameters are zero in WSASocket. 2013-09-17 19:07:14 +02:00
Bruno Jesus 29aab5df59 ws2_32: Fix the error returned for denied SOCK_RAW attempts. 2013-09-16 11:47:19 +02:00
Bruno Jesus 5762067b20 ws2_32: Fix WSASocket return code for invalid combination of socket type and protocol. 2013-09-16 11:47:19 +02:00
Bruno Jesus e0581b38a7 ws2_32: Advertise protocol entries as default. 2013-09-16 11:47:19 +02:00
Bruno Jesus 260250539d ws2_32/tests: Add more WSASocket tests. 2013-09-12 11:06:46 +02:00
Bruno Jesus d71bf64e87 ws2_32: Fix WSADuplicateSocket implementation. 2013-09-11 20:33:20 +02:00
Bruno Jesus dea4f7bc02 ws2_32: Implement get socket option SO_PROTOCOL_INFO. 2013-09-10 12:27:35 +02:00
Bruno Jesus d77522988b ws2_32/tests: Mark WinNT result as broken. 2013-09-09 22:09:59 +02:00
Bruno Jesus 1d1faa0283 ws2_32: Cope with invalid protocols in WSAEnumProtocols. 2013-09-05 16:21:48 +02:00
Bruno Jesus 4ce3ddedb9 ws2_32/tests: Add SO_PROTOCOL_INFO tests. 2013-08-29 19:56:17 +02:00
Bruno Jesus ce0e3158b2 ws2_32/tests: Add and update WSASocketA() tests. 2013-08-02 11:22:51 +02:00
Bruno Jesus d5f7f74f78 ws2_32/tests: Test the precedence of parameters while creating a socket in WSASocket(). 2013-08-01 11:42:50 +02:00
Bruno Jesus d7f216818f ws2_32/tests: Fix bad usage of WSAGetLastError() in tests. 2013-08-01 11:42:43 +02:00
Bruno Jesus 63fb7a798c ws2_32: Fix service flags returned from TCP and UDP protocols. 2013-07-31 16:29:48 +02:00
Bruno Jesus 4133fb4341 ws2_32/tests: Add SO_ACCEPTCONN tests. 2013-07-30 19:12:19 +02:00
Bruno Jesus a9f3c1974d ws2_32/tests: Add more tests for WSASocket(). 2013-07-29 14:27:59 +02:00
Bruno Jesus 3fea3a5b1a ws2_32: Fix listen() implementation. 2013-07-27 12:20:21 -05:00
Bruno Jesus 9ea1835b82 ws2_32/tests: Add listen() tests for TCP sockets. 2013-07-22 09:38:19 +02:00
Hans Leidekker 1d8b70fca4 ws2_32/tests: Avoid races. 2013-06-25 18:12:11 +02:00
André Hentschel 749bb1db35 ws2_32/tests: Don't test functions directly when reporting WSAGetLastError(). 2013-06-10 11:49:49 +02:00
Qian Hong 31b9455b7e server: Automatically sets a socket to non-blocking mode when WSAAsyncSelect or WSAEventSelect is called even when lEvent is zero. 2013-05-28 19:43:48 +02:00
Marcus Meissner 1a10d4d0cd ws2_32: Close the dest socket (Coverity). 2013-05-28 14:32:50 +02:00
Francois Gouget 867615419e ws2_32/tests: Fix the GetAcceptExSockaddrs() test. 2013-02-15 11:55:39 +01:00
Francois Gouget a5ff4b8088 Assorted spelling fixes. 2013-01-29 12:13:04 +01:00
Michael Stefaniuc f21d45417f ws2_32: Use assignment instead of memcpy to copy structs. 2013-01-24 14:34:12 +01:00
Bruno Jesus 02c199beed ws2_32/tests: Add SO_ERROR [set|get]sockopt tests. 2013-01-18 13:29:00 +01:00
Frédéric Delanoy 378e86fafa ws2_32/tests: Remove dead code (coverity). 2012-10-29 14:39:58 +01:00
Thomas Faber c574ab9680 ws2_32/tests: Add missing parentheses to ok() output. 2012-06-18 11:59:41 +02:00
Bruno Jesus b2af5e1d31 ws2_32: Fix hostent memory allocation. 2012-06-12 10:20:10 +02:00
Erich Hoover 7e9e8b6b80 ws2_32: Use STATUS_MORE_PROCESSING_REQUIRED to indicate that the AcceptEx async should not send a completion. 2012-06-07 16:07:02 +02:00
Francois Gouget fac36c55e9 Assorted typo, spelling, wording and case fixes. 2012-05-15 16:26:43 +02:00
Erich Hoover baa0056385 ws2_32/tests: Fix cleanup for first IOCP duplicated handle test. 2012-05-07 11:30:53 +02:00
Erich Hoover 74560c1d39 ws2_32/tests: Test for IOCP behavior without AcceptEx call. 2012-05-01 19:14:41 +02:00
Erich Hoover a766ee4b1d ws2_32/tests: Test for AcceptEx IOCP behavior for a duplicated handle. 2012-05-01 19:14:36 +02:00
Erich Hoover 23a785af7e ws2_32/tests: Test for AcceptEx IOCP behavior for cancelled sockets. 2012-05-01 19:14:31 +02:00
Erich Hoover 1e0b65f3a2 ws2_32/tests: AcceptEx IOCP initialization cleanup. 2012-05-01 19:14:27 +02:00
Bruno Jesus 3b2fcdd426 ws2_32/tests: Avoid crashing if getservbyname fails. 2012-04-11 19:12:30 +02:00
Bruno Jesus d209697073 ws2_32/tests: Update hostent struct tests. 2012-04-11 19:12:22 +02:00
Bruno Jesus 7d7995c66c ws2_32/tests: Add hostent struct tests for gethostbyname. 2012-04-09 12:06:52 +02:00
Bruno Jesus 9f6ce27ede ws2_32/tests: Avoid usage of inet_ntoa since its return is static. 2012-04-02 12:38:51 +02:00
Bruno Jesus 70be64b2ba ws2_32: Handle NULL proto in WSAAsyncGetServByName. 2012-03-26 18:15:34 +02:00
Frédéric Delanoy 09213db643 ws2_32/tests: Remove dead code in test_completion_port (Coverity). 2012-01-30 11:57:10 +01:00
Francois Gouget f445325999 Assorted spelling fixes. 2012-01-23 16:07:32 +01:00
Ričardas Barkauskas 01195b2dd7 ws2_32/tests: Test AcceptEx behaviour more. 2012-01-18 17:53:29 +01:00
Marcus Meissner d34e0515fd ws2_32: Removed dead code (Coverity). 2012-01-03 12:37:57 +01:00
Ričardas Barkauskas 1bbe92e79b ws2_32: Don't post completion packet if sending fails with error immediately. 2011-12-28 18:59:48 +01:00
Ričardas Barkauskas fa4a90e6d2 ws2_32/tests: Test some completion port behavior. 2011-12-28 18:59:45 +01:00
Hans Leidekker c42989ed9a ws2_32: Return the right value for SO_CONNECT_TIME if the socket is not connected. 2011-12-19 20:15:51 +01:00
Bruno Jesus 743929e4f4 ws2_32: Fix function GetAcceptExSockaddrs. 2011-11-28 16:40:50 +01:00
Bruno Jesus 06d759ed7e ws2_32: Invert SIOCATMARK logic. 2011-11-21 16:16:34 +01:00
Hans Leidekker 75be2284e1 ws2_32: Fix handling of NULL and empty hostname in getaddrinfo/GetAddrInfoW. 2011-11-15 19:37:29 +01:00
Matej Špindler 2e5718ba95 ws2_32: Test GetAddrInfo with zero port. 2011-11-14 15:25:24 +01:00
Bruno Jesus d278834dab ws2_32: Fix UDP LINGER support in getsockopt. 2011-10-04 15:26:22 -05:00
Hans Leidekker 94f431e3ee ws2_32: Avoid a crash in WS2_recv_base. 2011-09-14 14:55:46 +02:00
Bruno Jesus fd7b94bcd2 ws2_32: SO_OOBINLINE sockets must always return TRUE to SIOCATMARK request. 2011-09-13 17:17:00 +02:00
Bruno Jesus 2e08b31f7c ws2_32: Fix support for SIO_KEEPALIVE_VALS. 2011-09-08 20:08:06 +02:00
Bruno Jesus 312f50a26f ws2_32: Avoid an unhandled exception in WSAIoctl. 2011-09-06 12:23:55 +02:00
Bruno Jesus bebc425bb5 ws2_32: Fix false-positive write fds on select(). 2011-08-24 11:45:18 +02:00
Bruno Jesus a1d177c6b6 ws2_32/tests: Add MSG_PEEK tests on recv(). 2011-08-22 16:14:32 +02:00
André Hentschel dc16a01fdf ws2_32: Handle null pointer for linger values. 2011-06-21 14:51:14 +02:00
Marcus Meissner f50b8b8ac1 ws2_32: Fixed select() number of fds (Coverity). 2011-06-16 16:42:19 +02:00
Hans Leidekker 3581d2c6d1 ws2_32: Accept NULL lpNumberOfBytesSent for overlapped calls to WSASend/To. 2011-06-14 13:09:29 +02:00
Lauri Kenttä 69ab564f5d ws2_32/tests: Make sure that a structure is initialized (LLVM/Clang). 2011-06-13 15:05:39 +02:00
André Hentschel 3437591e71 ws2_32/tests: Don't read return value when we don't test for it. 2011-06-13 11:31:17 +02:00
Andrew Nguyen a282c150fa ws2_32/tests: Fix some test thread procedure prototypes. 2011-06-03 17:44:06 +02:00
Andrew Nguyen e9e0df23b8 ws2_32/tests: Avoid casting a WSAAccept function pointer parameter in test_accept. 2011-06-03 17:43:59 +02:00
Peter Urbanec 78ab293d3f ws2_32/tests: Socket error handling and reporting tests. 2011-06-02 16:24:22 +02:00
Andrew Nguyen 9edafeb742 ws2_32: Avoid a crash with an optional pointer in WSAAsyncGetServByPort. 2011-06-01 16:14:30 +02:00
Andrew Nguyen 2c74796456 ws2_32/tests: Properly destroy the async test window. 2011-06-01 16:14:22 +02:00
Peter Urbanec d0067a5dc1 ws2_32/tests: Use WSAGetLastError() when reporting errors. 2011-05-31 18:32:57 +02:00
André Hentschel e47ef8ae54 ws2_32/tests: Initialize atmark (valgrind). 2011-05-31 11:12:33 +02:00
André Hentschel 979f872fc7 ws2_32/tests: Add test for SIOCATMARK. 2011-05-27 17:53:37 +02:00
Andrew Nguyen aca2385d6c include: Revise the Winsock include in windows.h to match the Windows SDK. 2011-05-19 17:38:30 +02:00
Hans Leidekker ee683f7162 ws2_32: Add a test to show that WSAIoctl is synchronous. 2011-05-02 16:38:34 +02:00
Marcus Meissner ae0797150e ws2_32: name is never NULL as array (Coverity). 2011-02-24 12:40:30 +01:00
Alexandre Goujon 778757ba74 ws2_32: Make gethostbyname fail if WSAStartup was not called before. 2011-02-23 14:58:09 +01:00
Austin English 99012fe793 ws2_32/tests: Remove unneeded assignments (LLVM/Clang). 2011-02-09 09:27:11 -06:00
Joris Huizer 36c76573de ws2_32/tests: Don't test function directly when reporting GetLastError(). 2011-02-07 10:04:44 -06:00
Mike Kaplinskiy f58c709b5f server: Fix connect failures on newer kernels. 2011-01-24 14:43:28 +01:00
Mike Kaplinskiy 27b51ce6b0 ws2_32: Finish an overlapped send only if we sent everything. 2011-01-24 14:43:27 +01:00
Mike Kaplinskiy a0c810c177 ws2_32/tests: Add a test for an overlapped send. 2011-01-24 14:43:27 +01:00
Alexandre Julliard f89d80c276 ws2_32/tests: Avoid size_t in a trace. 2010-12-09 17:46:13 +01:00
Erich Hoover c134680321 ws2_32/tests: Add regression tests for WSARecvMsg and IP_PKTINFO. 2010-12-07 17:04:33 +01:00
Juan Lang 7f5583aee9 ws2_32: Set length on successful return from WSAStringToAddress. 2010-12-03 11:04:16 +01:00
Greg Geldorp b53edc6dcc ws2_32/tests: NT4 and Win2000 print IPv6 addresses a little bit differently. 2010-11-16 11:59:17 +01:00
Dan Kegel 6733c40d78 ws2_32: Null select() should fail with WSAEINVAL. 2010-10-18 19:47:49 +02:00
Alexandre Julliard 730f01801f tests: Make some variables static. 2010-10-01 13:41:42 +02:00
Juan Lang 9addae9d66 ws2_32: Implement WSAIoctl for SIO_ROUTING_INTERFACE_QUERY. 2010-09-29 10:05:55 +02:00
Juan Lang d06b1d599d ws2_32/tests: Test SIO_ROUTING_INTERFACE_QUERY. 2010-09-28 17:33:20 +02:00
Mike Kaplinskiy cf72f406ec ws2_32: Implement AcceptEx and GetAcceptExSockaddrs. 2010-09-22 20:04:32 +02:00
Alexandre Julliard 4cbfe4e1ef ws2_32: Fail when select is called with an invalid fd.
Based on a patch by Vincent Povirk.
2010-09-20 14:56:55 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Vincent Povirk e1705151a9 ws2_32: Add a test for selecting invalid sockets. 2010-09-15 17:50:32 -05:00
Alexandre Julliard 9f2c51800d ws2_32/tests: Fix some buffer overflows in traces. 2010-09-03 21:07:54 +02:00