Commit Graph

98 Commits

Author SHA1 Message Date
Hans Leidekker 3e0369970d iphlpapi: Return gateway address 0.0.0.0/255.255.255.255 from GetAdaptersInfo if it's not set.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-02 11:57:00 +02:00
Francois Gouget 8d71e3e8e7 iphlpapi/tests: Fix a spelling error in an ok() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-23 11:36:20 +01:00
Paul Gofman 1f2a7da28a iphlpapi: Return NO_ERROR from NotifyUnicastIpAddressChange() semi-stub.
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-27 23:34:51 +01:00
Paul Gofman 5cdd3848f5 iphlpapi: Support InitialNotification flag in NotifyUnicastIpAddressChange().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48669
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-27 23:34:51 +01:00
Alex Henrie 748bed3d10 iphlpapi/tests: Add tests for GetTcp6Table.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-17 15:04:59 +01:00
Alex Henrie f284d2a5e0 iphlpapi/tests: Drop workarounds for Windows <= 2000.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-13 20:30:35 +01:00
Alex Henrie d6942fac35 iphlpapi/tests: Don't allow skipping ParseNetworkString tests on Wine.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-13 20:30:35 +01:00
Alex Henrie 31d1175f82 iphlpapi/tests: Print a message when skipping GetUdp6Table tests.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-13 20:30:35 +01:00
Alex Henrie 433990d60d iphlpapi/tests: Build rotating buffers into ntoa and ntoa6.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-10 14:56:49 +01:00
Marcus Meissner e7007ee814 iphlpapi: Fixed size to MultiByteToWideChar.
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:56 +02:00
Alex Henrie 0e53616fe2 iphlpapi/tests: Add tests for ParseNetworkString.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-05 23:10:39 +02:00
Detlef Riekenberg f0db9c4b3b iphlpapi/tests: Remove a test with a wrong assumption.
The order of the interfaces is not fixed and can change,

Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-04 22:30:44 +02:00
Guillaume Charifi d292c4713f iphlpapi/tests: Add tests for GetUdp6Table().
Signed-off-by: Guillaume Charifi <guillaume.charifi@sfr.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:36 +02:00
Zhiyi Zhang 6ec5b57a1f iphlpapi: Improve parameter checking for IcmpSendEcho().
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 10:49:06 +02:00
Zhiyi Zhang 3825be96f3 iphlpapi: Report NO_ERROR when IcmpSendEcho() succeeded.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 10:49:06 +02:00
Zhiyi Zhang 417e996e97 iphlpapi: Don't use the client buffer in IcmpSendEcho().
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43252
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-15 10:49:06 +02:00
Michael Stefaniuc 46c0e56fec iphlpapi/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-05 23:50:17 +02:00
André Hentschel fb48a8f47e iphlpapi: Add support for MibIfTableNormalWithoutStatistics in GetIfTable2Ex.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-26 11:58:09 +02:00
Dagfinn Reiakvam 1d82495ba1 iphlpapi: Add support for ConvertLengthToIpv4Mask().
Signed-off-by: Dagfinn Reiakvam <dagfinn@reiakvam.no>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-21 10:14:20 +01:00
Alexandre Julliard 5c78657bfb iphlpapi/tests: Reduce window test verbosity.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-14 20:37:54 +01:00
Hans Leidekker e3fe10719e iphlpapi: Implement if_indextoname.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 11:32:25 +01:00
Alistair Leslie-Hughes 3548b25108 iphlpapi/tests: Use standard wine_dbgstr_longlong.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-04 10:46:59 +02:00
André Hentschel ebf5b23ccb iphlpapi: Add partial implementation of GetIfTable2Ex.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-30 11:55:28 +02:00
Stefan Dösinger a1026df403 iphlpapi: Implement if_nametoindex.
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-25 13:17:59 +02:00
Hans Leidekker 98f77c4f7c iphlpapi: Adapter names returned from GetAdaptersAddresses are GUID strings.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-11 10:17:48 -05:00
André Hentschel eda35423f4 iphlpapi: Implement GetUnicastIpAddressTable.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-30 22:06:34 +02:00
Bruno Jesus a36e1c84d4 iphlpapi/tests: Test route type and protocol in GetIpForwardTable.
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-07 09:01:16 +01:00
André Hentschel 38bf651bc4 iphlpapi/tests: Test ScopeID only for IPv6.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-27 17:50:34 +01:00
André Hentschel eaa5450ccd iphlpapi/tests: Add tests for GetUnicastIpAddressEntry.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 11:37:02 +01:00
André Hentschel 1bb9db43e1 iphlpapi: Use the new version of the IP_ADAPTER_UNICAST_ADDRESS structure.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-02 19:50:34 +01:00
Bruno Jesus 76644a7c26 iphlpapi/tests: Avoid ntoa() twice in function call as it returns same pointer.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 20:04:52 +01:00
Francois Gouget 77f78ddbf9 iphlpapi/tests: Remove an unnecessary NULL cast.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-25 17:18:07 +01:00
André Hentschel 4712f24060 iphlpapi/tests: Fix usage of broken().
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-18 20:01:36 +01:00
André Hentschel c77b11eba0 iphlpapi/tests: Add test for AllocateAndGetTcpExTableFromStack.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-17 12:27:54 +01:00
Bruno Jesus 95298b4442 iphlpapi: Ensure GetIpAddrTable returns loopback addresses in the end.
Signed-off-by: Bruno Jesus <00cpxxx@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-01 15:27:46 +01:00
Hans Leidekker e8ceab5344 iphlpapi/tests: Trace network prefixes in the test for GetAdaptersAddresses.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 23:51:31 +09:00
Hans Leidekker ad9ba6a029 iphlpapi: Implement GetIfTable2. 2015-08-18 17:30:14 +09:00
Hans Leidekker f93bf5ae48 iphlpapi/tests: Fix a couple of test failures. 2015-08-17 14:46:13 +09:00
Hans Leidekker 991474da46 iphlpapi: Implement GetIfEntry2. 2015-07-22 16:43:09 +02:00
Hans Leidekker 6cf1de4492 iphlpapi: Implement a couple of interface identifier conversion functions. 2015-07-22 16:42:42 +02:00
Hans Leidekker 2ffb2f71e3 iphlpapi: Add a partial implementation of CreateSortedAddressPairs. 2015-07-21 16:33:23 +02:00
Alexandre Julliard 0de1c331d6 iphlpapi/tests: Avoid sizeof in traces. 2015-05-20 21:45:55 +09:00
Bruno Jesus ec8e1df8a9 iphlpapi/tests: Improve IcmpSendEcho trace. 2015-05-15 21:58:06 +09:00
Bruno Jesus 084bcaa76b iphlpapi: Set MIB_IPADDR_PRIMARY as wType for GetIpAddrTable entries. 2015-05-14 14:24:44 +09:00
Bruno Jesus 9c20f9bca6 iphlpapi: Stub more IP_ADAPTER_UNICAST_ADDRESS fields in GetAdaptersAddresses. 2015-04-16 15:16:46 +09:00
Bruno Jesus 708ab4ca12 iphlpapi: Update the buffer size only if required in GetAdaptersAddresses. 2015-04-16 15:16:35 +09:00
Bruno Jesus a49668e8bc iphlpapi/tests: Add more test_GetAdaptersAddresses tests. 2015-04-16 15:16:31 +09:00
Bruno Jesus 317fd11e85 iphlpapi: Set 0.0.0.0 as the IP and mask of disconnected interfaces. 2015-01-16 16:54:08 +01:00
Marko Hauptvogel 4d0ac5c5ac iphlpapi/tests: Fix typo. 2014-09-12 10:43:32 +02:00
Nikolay Sivov 1017a027e7 iphlpapi/tests: Skipping test on access error. 2014-06-27 10:37:45 +02:00