Francois Gouget
9d82cda245
iphlpapi: Make the adapters_addresses_*() functions static.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-31 15:51:45 +02:00
Huw Davies
9521640aa7
iphlpapi: Return early on error.
...
This prevents using err uninitialized. Spotted by Fabian Maurer.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51655
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-25 10:40:30 +02:00
Francois Gouget
8188b1ac84
iphlpapi: Fix an ASCII / ANSI mixup in a comment.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-24 12:14:21 +02:00
Huw Davies
6460f72db4
iphlpapi: Use the correct physical address.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51642
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-23 11:54:28 +02:00
Huw Davies
773c585193
iphlpapi: Don't truncate 64-bit ptrs.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51620
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51626
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-23 11:54:25 +02:00
Huw Davies
e39d5967c7
iphlpapi: Remove no longer needed libraries.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-19 11:16:49 +02:00
Huw Davies
7992178df5
iphlpapi: Use the ANSI codepage for the convert interface name functions.
...
The name in these functions is now not the Unix interface name.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-19 11:16:40 +02:00
Huw Davies
502fd1a4ba
iphlpapi: Implement GetAdapterIndex() by parsing the GUID from the name.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-19 11:16:36 +02:00
Huw Davies
8d7720b0ed
iphlpapi: Don't enumerate loopback interfaces in GetInterfaceInfo().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-19 11:16:34 +02:00
Huw Davies
203350e030
iphlpapi: Implement GetInterfaceInfo() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-19 11:16:31 +02:00
Huw Davies
e91b19bf38
iphlpapi: Implement GetUdpStatisticsEx() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-18 11:07:41 +02:00
Huw Davies
ec0cf43497
iphlpapi: Implement AllocateAndGetUdpTableFromStack() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-18 11:07:36 +02:00
Huw Davies
566079d4f6
iphlpapi: Implement GetExtendedUdpTable() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-18 11:07:29 +02:00
Huw Davies
7341bee1dc
iphlpapi: Implement AllocateAndGetTcp(Ex)TableFromStack() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-17 11:43:28 +02:00
Huw Davies
f535ab7197
iphlpapi: Implement GetTcpTable2() and GetTcp6Table2().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-17 11:43:26 +02:00
Huw Davies
6bac492b1f
iphlpapi: Implement GetExtendedTcpTable() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-17 11:43:23 +02:00
Huw Davies
b2600726fc
iphlpapi: Use the correct size to allocate the process map.
...
The size is known at the start, so there's no need to grow it.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-17 11:43:12 +02:00
Huw Davies
4716138d07
iphlpapi: Implement GetTcpStatisticsEx() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-13 11:38:14 +02:00
Huw Davies
5b99e791ce
iphlpapi: Implement GetIcmpStatistics() on top of GetIcmpStatisticsEx().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-12 17:30:21 +02:00
Huw Davies
1cc49258f7
iphlpapi: Implement GetIcmpStatisticsEx() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-12 17:30:21 +02:00
Huw Davies
2586bbb212
iphlpapi: Update the echo request and reply counts.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-12 17:30:21 +02:00
Huw Davies
91494ae6f2
iphlpapi: Implement GetIpStatisticsEx() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-11 23:00:50 +02:00
Huw Davies
b63195d595
iphlpapi: Implement AllocateAndGetIpNetTableFromStack() on top of GetIpNetTable().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-10 17:53:54 +02:00
Huw Davies
a16697398b
iphlpapi: Implement GetIpNetTable() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-10 17:53:54 +02:00
Huw Davies
ae3e512b77
iphlpapi: Implement GetIpNetTable2() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-10 17:53:54 +02:00
Huw Davies
091c92521e
iphlpapi: Implement GetAdaptersAddresses() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-09 11:40:55 +02:00
Huw Davies
fade7a5862
iphlpapi: Mark non-loopback, non-linklocal addresses as dns eligible.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-09 11:40:44 +02:00
Huw Davies
3bace8862f
iphlpapi: Rewrite GetAdaptersAddresses() to first alloc and then copy the info.
...
This refractoring is necessary to simplify implementing it on top of nsi.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-09 11:40:40 +02:00
Huw Davies
b45b4048cf
iphlpapi: Add support for the EnableRouting member.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-06 10:39:18 +02:00
Huw Davies
131307746d
iphlpapi: Move the loopback check to get_dns_server_list().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-06 10:39:15 +02:00
Huw Davies
4f3269f1e0
iphlpapi: Use DnsQueryConfig() to retrieve the dns suffix.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-06 10:39:13 +02:00
Huw Davies
769952df5f
iphlpapi: Use DnsQueryConfig() to retrieve the dns servers for the remaining functions.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-06 10:39:10 +02:00
Huw Davies
d95103c467
iphlpapi: Use DnsQueryConfig() to retrieve the dns servers for GetAdaptersAddresses().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-06 10:38:36 +02:00
Huw Davies
2e399e4857
iphlpapi: Implement GetAdaptersInfo() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-03 22:42:01 +02:00
Huw Davies
fabd9e1f80
iphlpapi/tests: Add more tests for GetAdaptersInfo().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-03 22:42:01 +02:00
Huw Davies
1f2adbb3a9
iphlpapi: Move the WINS server lookup to a helper.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-03 22:42:01 +02:00
Huw Davies
413eeaead5
iphlpapi: Implement AllocateAndGetIpForwardTable() on top of GetIpForwardTable().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-02 11:28:37 +02:00
Huw Davies
0515480d89
iphlpapi: Implement GetIpForwardTable() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-02 11:28:35 +02:00
Huw Davies
8f207fe7a8
iphlpapi: Implement GetIpForwardTable2().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-02 11:28:33 +02:00
Huw Davies
8d9d7fc5d2
iphlpapi: Retrieve the IPv4 addresses using an export rather than a helper.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-22 21:12:15 +02:00
Huw Davies
24ca70a60c
iphlpapi: Implement AllocateAndGetIpAddrTableFromStack() on top of GetIpAddrTable().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-22 21:12:13 +02:00
Huw Davies
beb8444487
iphlpapi: Implement GetIpAddrTable() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-22 21:12:10 +02:00
Huw Davies
67c8a82f3d
iphlpapi: Implement GetUnicastIpAddressEntry() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 12:16:12 +02:00
Huw Davies
2f3ab0b242
iphlpapi: Implement GetUnicastIpAddressTable() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 12:16:10 +02:00
Huw Davies
8e13903665
iphlpapi: Remove unused function getInterfaceStatsByName().
...
This should have been part of commit 0b5a6c704c
.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-20 12:13:48 +02:00
Huw Davies
f1349aa514
iphlpapi: Return the TCPIP device name in MIB_IFROW.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-09 11:00:56 +02:00
Huw Davies
adea7b8f91
iphlpapi: Implement AllocateAndGetIfTableFromStack() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-09 11:00:54 +02:00
Huw Davies
d044171b72
iphlpapi: Implement GetIfEntry() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-09 11:00:51 +02:00
Huw Davies
e93053c344
iphlpapi: Implement GetIfTable() on top of nsi.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-09 11:00:49 +02:00
Huw Davies
bdc48738ce
iphlpapi: Implement GetAdapterIndex() on top of GetIfTable().
...
Eventually this should just parse the Guid in the name. This is an
intermediate step to keep the interface names in sync.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-07-09 11:00:43 +02:00