Commit Graph

407 Commits

Author SHA1 Message Date
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