Gabriel Ivăncescu
1bae6b12e5
iphlpapi: Store an IO_STATUS_BLOCK at the end of the reply buffer if there's enough space available.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 20:18:38 +01:00
Gabriel Ivăncescu
fb18f9fc6e
iphlpapi: Make sure there's no gap between the ICMP_ECHO_REPLY array and the data.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 20:18:38 +01:00
Gabriel Ivăncescu
9ef55abc9f
iphlpapi: Fix adjusting data pointer after an ICMP reply.
...
The code above it already sets endbuf to the beginning of the last data
added. On a new reply, endbuf is decremented to make space for the new
data. There's no reason to adjust it again for the old data after it has
already been set.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 20:18:38 +01:00
Gabriel Ivăncescu
7eafc71416
iphlpapi: Implement IcmpSendEcho and IcmpSendEcho2 via IcmpSendEcho2Ex.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 20:18:38 +01:00
Gabriel Ivăncescu
b23039fa43
iphlpapi: Move the ICMP reply retrieval to a helper function.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 20:18:38 +01:00
Gabriel Ivăncescu
9d481a1fff
iphlpapi/tests: Trace the ICMP reply only with debug level > 1.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 20:18:38 +01:00
Gabriel Ivăncescu
7d451c3396
iphlpapi/tests: Close the ICMP handle when done.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-03 20:18:38 +01:00
Jiangyi Chen
f6ae4d1670
iphlpapi: Rename local variables shadowing the flags parameters.
...
Signed-off-by: Jiangyi Chen <chenjiangyi@uniontech.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-22 21:49:21 +02:00
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
Gabriel Ivăncescu
e6d9aaeb67
iphlpapi: Update comment for SOCK_DGRAM since Linux also supports it from 3.0.
...
Linux does require the user to be in the range specified by
/proc/sys/net/ipv4/ping_group_range though, but otherwise works fine.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-03 21:23:31 +02:00
Paul Gofman
3feaca7546
iphlpapi: Fix buffer reallocation in get_pid_map().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49590
Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-22 22:16:05 +02:00
Zebediah Figura
747573f1e4
iphlpapi: Reimplement get_pid_map() using the list_processes request.
...
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-07 19:24:27 +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
Stefan Dösinger
f3b64f950f
iphlpapi: Honor sa_len when reading AF_INET addresses.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-22 17:23:21 +02:00
Stefan Dösinger
4932eec313
iphlpapi: Use the dst sa_family for the netmask too.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-22 17:22:45 +02:00
Stefan Dösinger
7f4beb0883
iphlpapi: Write an ERR if the sockaddr parsing went wrong.
...
It should not happen any more after the previous patch but it is subtle
enough that I think being verbose about it makes sense.
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-22 17:22:36 +02:00
Stefan Dösinger
594dfe6875
iphlpapi: MacOS struct sockaddr is 4 byte aligned on 64 bit.
...
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-22 17:22:34 +02:00
Chip Davis
73ad2954a3
iphlpapi: Implement GetUdp6Table() for Mac OS and FreeBSD.
...
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-06 21:21:42 +02:00
Chip Davis
57fe49f858
iphlpapi: Implement GetTcp6Table() for Mac OS and FreeBSD.
...
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-06 21:21:42 +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
7096ab4544
iphlpapi: Fix unused variable warning.
...
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-03 20:16:56 +02:00
Gijs Vermeulen
a294767e32
iphlpapi: Fix unused function warning for get_ipv6_addr_scope_table & find_ipv6_addr_scope.
...
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-03 20:16:51 +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
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
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
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
9818940048
iphlpapi: Get rid of dummy arguments to sscanf.
...
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
Alex Henrie
71affb2892
iphlpapi: Remove unnecessary memcpy from build_udp6_table.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-10 14:56:49 +01:00
Alex Henrie
87875e12bc
iphlpapi: Consolidate append_*_row functions.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-03 21:23:21 +01:00
Chip Davis
87dafc3c87
iphlpapi: Implement some more IpStatistics on BSD.
...
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-13 13:16:00 +01:00
Chip Davis
697abbcbf5
iphlpapi: Correct Forwarding value from GetIpStatistics(Ex)() on *BSD.
...
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-13 13:16:00 +01:00
Chip Davis
048a3cab0b
iphlpapi: Set the SpecificPortBind bit if the caller wants it on BSD.
...
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-13 13:16:00 +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
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
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
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
Gleb Smirnoff
424e1e71ca
iphlpapi: Account for structs inpcb and tcpcb being unavailable for userland in FreeBSD 12.
...
FreeBSD 12, specifically __FreeBSD_version 1200026 and later, no longer
exposes struct inpcb and struct tcpcb to userland. New structs xinpcb
and xtcpcb shall be used instead.
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-19 16:48:44 +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
Erich E. Hoover
05fca48ebc
iphlpapi: Implement AllocateAndGetTcpExTableFromStack.
...
Based on a patch by Ralf Habacker.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=34372
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-30 20:16:42 +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
Piotr Caban
95510d5b1b
iphlpapi: Don't use strncasecmp.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-03 20:27:23 +02:00
Michael Stefaniuc
8c79999122
iphlpapi: Drop unneeded continue statements (coccinellery).
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-22 19:50:38 +01:00
Michael Stefaniuc
4884323172
iphlpapi: Remove a redundant NULL check before HeapFree().
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-20 21:58:17 +01: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
Józef Kucia
be3a3ad825
iphlpapi: Fix FILE leak in get_ipv6_addr_scope_table() (Coverity).
...
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-11 13:38:25 +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
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
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
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
Michael Stefaniuc
3aa189ec63
iphlpapi: Avoid ARRAY_SIZE-like macros.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-06 19:44:26 +02:00
Alex Henrie
9b626f5120
iphlpapi: Cast caddr_t to char* before doing pointer arithmetic.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-28 14:13:42 +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
Alistair Leslie-Hughes
b9e082fc07
include: Move AllocateAndGet* functions to public header.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-08 11:10:48 +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
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
Andrey Gusev
62b5d6b110
iphlpapi: Change variable type.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-03 12:42:42 +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
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
Alexandre Julliard
7f23bbe7f9
iphlpapi: Check if getifaddrs really exists.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-19 18:46:29 +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
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
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
Charles Davis
99d247ad5a
iphlpapi: Add missing header to configure test.
...
This lets GetIcmpStatistics() work again on FreeBSD.
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 10:24:24 +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
André Hentschel
5262696e21
iphlpapi: Fix GetBestRoute spec file entry.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-26 10:34: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
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
f93bf5ae48
iphlpapi/tests: Fix a couple of test failures.
2015-08-17 14:46:13 +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
André Hentschel
10b91549ed
iphlpapi: Fix possible Out-of-bounds write (Coverity).
2015-07-20 06:31:49 +02:00
Nikolay Sivov
6444290ace
iphlpapi: Added ConvertInterfaceLuidToGuid() stub.
2015-06-05 18:40:05 +09: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
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
Alexandre Julliard
c7924e530d
iphlpapi: Avoid an uninitialized variable warning.
2014-10-24 19:58:05 +09:00
Bruno Jesus
794d52273e
iphlpapi: Fix a one counter for two loops error (PVS-Studio).
2014-10-24 19:58:05 +09:00
Marko Hauptvogel
869f8fd238
iphlpapi: Add icmpv6 send stub.
2014-09-12 10:43:36 +02:00
Marko Hauptvogel
4d0ac5c5ac
iphlpapi/tests: Fix typo.
2014-09-12 10:43:32 +02:00
Marko Hauptvogel
f3fa809e50
iphlpapi: Implement icmpv6 create function.
2014-09-12 10:43:30 +02:00
Hao Peng
8128ddfac8
iphlpapi: Add PfUnBindInterface function stub.
2014-08-05 17:29:58 +02:00
Hao Peng
240e66a281
iphlpapi: Add PfDeleteInterface function stub.
2014-08-05 17:29:58 +02:00
Hao Peng
331092b54e
iphlpapi: Add PfBindInterfaceToIPAddress function stub.
2014-08-05 17:29:42 +02:00
Jacek Caban
ef1342bae7
iphlpapi: Protect res_init call with critical section.
2014-07-02 12:00:30 +02:00
Nikolay Sivov
1017a027e7
iphlpapi/tests: Skipping test on access error.
2014-06-27 10:37:45 +02:00
Felix Janda
0547c0d236
iphlpapi: stdio.h needs to be included for sprintf().
2014-06-12 18:05:10 +02:00
Alexandre Julliard
cf0e96c6d0
configure: Rename substituted variables to a standard _CFLAGS and _LIBS format.
2014-01-30 14:51:33 +01:00
Bruno Jesus
1470d7b4cc
iphlpapi: Return error for IP address with value zero in IcmpSendEcho.
2014-01-13 17:37:28 +01:00
Bruno Jesus
2548d75f16
iphlpapi/tests: Add more IcmpSendEcho tests related to the reply size.
2014-01-09 10:51:07 +01:00
Bruno Jesus
98e1560d49
iphlpapi/tests: Add IcmpSendEcho tests.
2014-01-08 16:11:33 +01:00
Alexandre Julliard
99ef0d6ff0
makefiles: Get rid of the MAKE_TEST_RULES variable.
2014-01-02 12:13:16 +01:00
Alexandre Julliard
5e7416e5c8
makefiles: Get rid of the MAKE_DLL_RULES variable.
2014-01-02 12:08:18 +01:00
Hans Leidekker
5674f16649
iphlpapi: Add support for GAA_FLAG_INCLUDE_PREFIX in GetAdaptersAddresses.
2013-10-08 15:58:48 +02:00
Hans Leidekker
a873fdc66f
iphlpapi: Set the mask for gateway entries in GetAdaptersInfo.
2013-10-07 14:44:36 +02:00
Frédéric Delanoy
1ca0c4a617
iphlpapi: Use BOOL type where appropriate.
2013-10-07 13:32:06 +02:00
Michael Stefaniuc
c6946ff653
iphlpapi/tests: Use the W form of CreateEvent().
2013-10-02 11:02:29 +02:00
Huw Davies
f9447f92ef
iphlpapi: Use socklen_t where appropriate.
2013-09-19 20:14:05 +02:00
Huw Davies
21dc848378
iphlpapi: Add interface enumeration for Android.
2013-09-19 20:14:04 +02:00
Huw Davies
8876c3ee82
iphlpapi: Combine the various interface enumeration functions into one function.
2013-09-19 20:14:03 +02:00
Huw Davies
f8463f28a9
iphlpapi: Add helpers to convert the host's sockaddr structures to SOCKADDR_STORAGE.
2013-09-18 20:21:31 +02:00
Huw Davies
208eae73ae
iphlpapi: Add a version of get_dns_servers for Android.
2013-09-17 16:24:24 +02:00
Huw Davies
c7dd313d75
iphlpapi: Add a configure check for struct __res_state.
2013-09-17 16:23:42 +02:00
Huw Davies
57ed5bf32e
iphlpapi: Use proper multibyte to unicode conversion.
2013-09-16 19:50:40 +02:00
Huw Davies
2f25ddfd14
iphlpapi: Add support for ip6 dns addresses.
2013-09-13 14:19:36 +02:00
Huw Davies
334875f38e
iphlpapi: Move dns server enumeration to a single function.
2013-09-13 14:19:36 +02:00
Huw Davies
01d5632e5e
iphlpapi/tests: Increase buffer size to prevent overflow.
2013-09-13 14:19:36 +02:00
Huw Davies
5bfabee8cd
iphlpapi: Don't set the dns server list if there are no servers.
2013-09-10 17:31:48 +02:00