Commit Graph

189 Commits

Author SHA1 Message Date
Isabella Bosia 44ef8eaf58 iphlpapi: Make the interface guids more unique.
Signed-off-by: Isabella Bosia <ibosia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-03 15:23:24 +02:00
Isabella Bosia dea32fa004 iphlpapi: Unify conversions to interface guid.
Signed-off-by: Isabella Bosia <ibosia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-03 15:23:22 +02:00
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
Alex Henrie 40cc236b6b iphlpapi: Implement ParseNetworkString for IPv6 addresses and services.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-14 20:59:36 +02:00
Louis Lenders 62b89ad0a5 iphlpapi: Add stub for NotifyRouteChange2.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48775
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-11 21:24:58 +02:00
Chip Davis 39464e86a0 iphlpapi: Use res_getservers() if available to get the DNS server list.
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-06 21:21:42 +02:00
Gijs Vermeulen 4c445127da iphlpapi: Silence unused function warning for sockaddr_in6_to_WS_storage.
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-03 20:16:40 +02: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 94588567af iphlpapi: Implement GetTcp6Table on Linux.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-17 15:04:59 +01:00
Joseph Kogut 713f4568e6 iphlpapi: Report success in NotifyIpInterfaceChange.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47935
Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-17 21:16:32 +02:00
Alex Henrie faf354cd45 iphlpapi: Implement ParseNetworkString for IPv4 addresses and services.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45560
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-05 23:10:39 +02:00
Austin English d48ffbdc01 iphlpapi: Add GetBestRoute2 stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=44850
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-01 22:46:52 +02:00
Louis Lenders 5a675ea44a iphlpapi: Add stub for GetIpInterfaceTable.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46015
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-30 19:00:35 +01:00
Austin English 2ffe089c95 iphlpapi: Add GetIpNetTable2 stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45036
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-26 19:34:20 +02:00
Guillaume Charifi 88e44332fe iphlpapi: Implement 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
Michael Stefaniuc d2ff159f16 iphlpapi: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 09:42:23 +02:00
Austin English cf9eced885 iphlpapi: Add GetIpForwardTable2 stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-04-17 17:03:13 +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
Dmitry Timoshkov b4d0e56c93 iphlpapi: Also check the IP address family before treating it as an IPv6 one.
On my local network there is no IPv6 DNS servers, and sin6_family == AF_INET.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:13:18 +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
Nikolay Sivov 9eaf99174e iphlpapi: Fix GetIfTable() trace message.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-03 16:08:16 +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
Hans Leidekker c6e469347c iphlpapi: Return a fully initialized GUID from ConvertInterfaceLuidToGuid.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 09:15:32 -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
Pierre Schweitzer 30a27f0ba7 iphlpapi: Flags in IP_ADAPTER_ADDRESSES_LH can be used as a bit field.
Signed-off-by: Pierre Schweitzer <pierre@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-14 09:35:39 +01:00
André Hentschel 8c03b845c0 iphlpapi: Flesh out NotifyIpInterfaceChange arguments.
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-14 09:34:31 +01:00
André Hentschel 0bf31be76e iphlpapi: Add stub for NotifyUnicastIpAddressChange.
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-10 23:21:25 +01:00
André Hentschel ccdbceeefc iphlpapi: Add GetUnicastIpAddressEntry implementation.
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 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 ad9ba6a029 iphlpapi: Implement GetIfTable2. 2015-08-18 17:30:14 +09:00
Hans Leidekker d5a1e47a45 iphlpapi: Use WS_AF_INET instead of AF_INET where appropriate. 2015-08-18 17:29:58 +09:00
Bruno Jesus 89d3f08ca2 iphlpapi: Add a stub for SetPerTcpConnectionEStats. 2015-08-17 16:57:59 +09:00
Hans Leidekker bc334c679a iphlpapi: Set the adapter LUID in GetAdaptersAddresses. 2015-08-17 14:46:11 +09:00
Henri Verbeet 0b69c27c41 iphlpapi: Simplify the calculation of "ptr" in CreateSortedAddressPairs(). 2015-08-12 22:51:50 +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
Nikolay Sivov 6444290ace iphlpapi: Added ConvertInterfaceLuidToGuid() stub. 2015-06-05 18:40:05 +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 317fd11e85 iphlpapi: Set 0.0.0.0 as the IP and mask of disconnected interfaces. 2015-01-16 16:54:08 +01:00
Austin English 44933230f6 iphlpapi: Add FreeMibTable implementation. 2015-01-14 20:46:55 +01:00
Bruno Jesus 6b4dcb3f35 iphlpapi: Add a stub for CreateSortedAddressPairs(). 2015-01-05 20:13:02 +01:00
Sebastian Lackner 7796661b4c iphlpapi: Add stub for NotifyIpInterfaceChange.
Based on a patch by Yann Leretaille.
2014-11-03 20:29:59 +09:00
Sebastian Lackner 2eded57ffe iphlpapi: Add stub for CancelMibChangeNotify2.
Based on a patch by Yann Leretaille.
2014-11-03 20:29:52 +09:00