Commit Graph

392 Commits

Author SHA1 Message Date
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
Francois Gouget 4f27b78fb4 iphlpapi: Check for proc_pidinfo() instead of assuming libproc.h always defines it.
This is needed on FreeBSD 8.1.
2013-09-04 14:42:58 +02:00
Alexandre Julliard fc36c5eb5d iphlpapi: Fix some memory leaks. 2013-08-26 17:32:03 +02:00
Charles Davis 3a2247f7d3 iphlpapi: Implement find_owning_pid() on FreeBSD. 2013-08-20 12:31:12 +02:00
Charles Davis e3b9167335 iphlpapi: Implement find_owning_pid() for Mac OS. 2013-08-20 12:29:44 +02:00
Hans Leidekker 792eafa465 iphlpapi: Add partial support for the module classes in GetExtendedTcpTable and GetExtendedUdpTable. 2013-07-30 19:12:06 +02:00
Hans Leidekker 8615723699 iphlpapi: Add support for the listener and connection classes in GetExtendedTcpTable. 2013-07-30 19:12:05 +02:00
Filip Navara 7ca40003d2 iphlpapi: Use prefixed WS_ structures to avoid misalignment on OS X builds.
Thanks to Hans Leidekker for diagnosing the problem.
2013-03-11 10:41:18 +01:00
Alexandre Julliard 4468a0122f iphlpapi: Remove an unnecessary DllMain entry point. 2013-02-14 21:37:55 +01:00
Juan Lang 0ca4ad0d2f iphlpapi: Fix HRESULT/win32 error code confusion. 2013-02-11 11:24:13 +01:00
Michael Stefaniuc 1cc6710aee iphlpapi: Let C look like C. 2013-02-07 12:03:50 +01:00
Jacek Caban fdcbd3137a iphlpapi: Added support for direct routes when using NET_RT_DUMP. 2013-01-02 17:11:53 +01:00
Michael Stefaniuc 61a029355e iphlpapi: Simplify size calculation of structs with var length array. 2012-12-10 11:27:01 +01:00
Frédéric Delanoy 82c97d954d iphlapi: Fix some leaks (coverity). 2012-11-07 13:56:00 +01:00
André Hentschel 6f8ac7cf1b iphlpapi: Close socket on failed HeapAlloc (coverity). 2012-10-26 11:45:18 +02:00
Qian Hong b3e7f71091 iphlpapi: Set DhcpEnabled to TRUE for all interfaces. 2012-09-28 11:29:28 +02:00
Francois Gouget 5f55a71b70 Assorted spelling fixes. 2012-09-24 22:27:29 +02:00
André Hentschel 07316882a5 iphlpapi: Improved GetTcpStatisticsEx stub. 2012-09-21 10:54:59 +02:00
André Hentschel 92e24af5e8 iphlpapi: Implement GetIcmpStatisticsEx on Linux. 2012-09-20 19:27:33 +02:00
André Hentschel 5e3cc41004 iphlpapi: Implement GetUdpStatisticsEx on Linux. 2012-09-20 19:24:21 +02:00
André Hentschel f2626c31af iphlpapi: Implement GetIpStatisticsEx on Linux. 2012-09-20 19:24:04 +02:00
Hans Leidekker bc8876f9ce iphlpapi: Add partial support for UDP_TABLE_OWNER_MODULE in GetExtendedUdpTable. 2012-09-07 16:44:03 +02:00
Hans Leidekker 18ba68ea62 iphlpapi: Implement GetExtendedUdpTable. 2012-09-07 16:40:31 +02:00
Francois Gouget 0f3085c82e iphlpapi: Don't rely on the HAVE_XXX macros having a numeric values. 2012-06-13 12:08:50 +02:00
Francois Gouget 562b277bb3 iphlpapi: Don't rely on the HAVE_XXX macros having a numeric values. 2012-06-08 19:35:18 +02:00
André Hentschel bc99d86729 iphlpapi: Check for struct icmpstat (for NetBSD). 2012-06-07 22:00:12 +02:00
André Hentschel 20dbe91212 iphlpapi: Check for struct udpstat (for NetBSD). 2012-06-07 21:59:28 +02:00
André Hentschel eaab7a88f4 iphlpapi: Check for the right TCP statistics structure name (for DragonFly BSD). 2012-06-04 12:17:56 +02:00
André Hentschel cecf1056bb iphlpapi: Check for the right IP statistics structure name (for DragonFly BSD). 2012-06-04 12:17:55 +02:00
André Hentschel c74b1c2159 iphlpapi: Fix check for icmpstat.icps_outhist. 2012-06-04 12:17:55 +02:00
Alexandre Julliard 153e163b27 iphlpapi/tests: Avoid test failures when IPv6 is not supported. 2012-05-03 10:10:45 +02:00
André Hentschel d2581e6229 iphlpapi/tests: Add simple tests for the Get*StatisticsEx functions. 2012-04-30 20:03:30 +02:00
Francois Gouget e0212511fc iphlpapi/tests: Fix compilation on systems that don't support nameless unions. 2012-04-30 11:01:04 +02:00
Alexandre Julliard 99c6eb0dd0 iphlpapi/tests: Get rid of function typedefs and use more standard names for function pointers. 2012-04-25 17:16:24 +02:00
Bruno Jesus 8dde502f0e iphlpapi/tests: Add SetTcpEntry tests. 2012-04-25 17:12:02 +02:00
Hans Leidekker d4ebc5298f iphlpapi: Reimplement GetTcpTable on top of GetExtendedTcpTable. 2012-04-16 17:49:34 +02:00
Hans Leidekker d2dbd9bdac iphlpapi: Add tests for GetExtendedTcpTable. 2012-04-16 17:49:33 +02:00
Hans Leidekker e78ac4711c iphlpapi: Add support for TCP_TABLE_OWNER_PID_ALL in GetExtendedTcpTable. 2012-04-16 17:49:33 +02:00
André Hentschel b93c3905b0 iphlpapi: Make GetAdaptersAddresses hotpatchable. 2012-03-08 18:55:28 +01:00
Austin English ce2e7cdc9e iphlpapi: Add GetTcp6Table/GetTcp6Table2 stubs. 2012-01-26 19:07:43 +01:00
Austin English a52f88096f iphlpapi: Add a stub for GetTcpTable2:. 2012-01-25 13:31:25 +01:00
Austin English dc80d2d6c2 iphlpapi: Sync spec file to Windows 7. 2012-01-25 13:31:09 +01:00