Commit Graph

390 Commits

Author SHA1 Message Date
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
Francois Gouget 694f27743f iphlpapi/tests: Fix compilation on systems that don't support nameless unions. 2011-12-27 16:55:10 +01:00
Hans Leidekker 895e7a5f5b iphlpapi: Add a stub implementation of GetExtendedTcpTable. 2011-12-19 20:15:50 +01:00
Francois Gouget 3fe2d6e5fd include: Update the nldef.h and *mib.h headers. 2011-12-15 10:49:17 +01:00
Francois Gouget 732f5a7239 include: Define the MIB_IF_OPER_STATUS_XXX constants using an enumeration in ipifcons.h. 2011-12-14 17:54:44 +01:00
Francois Gouget 653c1d76d0 include: Add the missing inaddr.h and in6addr.h include directives. 2011-12-09 21:15:33 +01:00
Francois Gouget 6fa0bda535 iphlpapi: Remove a few redundant include directives. 2011-12-09 21:15:33 +01:00
Juan Lang d2236db8c1 iphlpapi: Fix enumerating IPv6 addresses. 2011-11-15 19:37:29 +01:00
Juan Lang c6bb89a6d6 iphlpapi: Remove unneeded includes. 2011-11-14 15:25:26 +01:00
Juan Lang 0de0796134 iphlpapi: Remove an unmaintained comment, and update copyright. 2011-11-14 15:25:26 +01:00
Juan Lang cd0ee464cd iphlpapi: Combine #ifdef HAVE_IFADDRS_H blocks. 2011-11-14 15:25:26 +01:00
Juan Lang 25b014b6e7 iphlpapi: Implement retrieving IPv4 addresses using getifaddrs, when available. 2011-11-14 15:25:26 +01:00
Charles Davis 0cae7c5087 iphlpapi: Implement GetUdpTable() on Mac OS and the BSDs. 2011-10-08 19:47:29 +02:00
Nowres Rafed 1013f70a1f iphlpapi: Implemented IcmpSendEcho2Ex(). 2011-07-29 18:09:04 +02:00
Jacek Caban 76eba12e1c iphlpapi: Added PfCreateInterface stub implementation. 2011-06-07 18:11:06 +02:00
Alexandre Julliard 7165e22d72 iphlpapi: Close the socket in IcmpCloseHandle. 2011-05-30 17:22:27 +02:00
Gerald Pfeifer c053e6680c iphlpapi: Make addrLen unsigned in getInterfacePhysicalByName. 2011-05-23 11:21:36 +02:00
Mike Kaplinskiy e2e98ae36f iphlpapi: Set the overlapped status to pending as well as returning ERROR_IO_PENDING. 2011-05-23 11:17:06 +02:00
Marcus Meissner 44beace115 iphlapi: Mark internal symbols with hidden visibility. 2011-05-19 10:05:46 +02:00
Francois Gouget 5920de5ffb Assorted spelling and case fixes. 2011-05-09 12:09:27 +02:00
Janne Hakonen 82a2ec13f0 iphlpapi: Changed return value of NotifyAddrChange() stub and added test cases. 2011-02-15 17:24:26 +01:00
Ken Thomases d52f95cec8 iphlpapi: Enable non-privileged ICMP (ping) on Mac OS X. 2011-02-14 12:29:18 +01:00
Andrew Nguyen 587a9aa9f0 iphlpapi: Correctly compute the buffer offset for the DNS address structure in GetAdaptersAddresses.
Spotted with Valgrind.
2011-01-17 15:56:06 +01:00
Timo Teräs bfc8832ccb iphlpapi: Fix GetAdaptersAddresses return values. 2010-12-27 15:39:39 +01:00
David Bartley bf6a20fad3 iphlpapi: Add CancelIPChangeNotify stub. 2010-12-13 12:43:30 +01:00
Juan Lang 39340a1027 iphlpapi: Return DNS suffix for all non-loopback adapters. 2010-10-13 11:08:02 +02:00
Juan Lang 112f878975 iphlpapi: Set DNS servers in the IP_PER_ADAPTER_INFO returned for non-loopback addresses. 2010-10-12 12:17:51 +02:00
Juan Lang 189cd59079 iphlpapi: Use a helper function to get the DNS server list. 2010-10-12 12:17:51 +02:00
Juan Lang 873034c72d iphlpapi: Set DNS servers in GetAdaptersAddresses when GAA_FLAG_SKIP_DNS_SERVER isn't specified. 2010-10-12 12:17:50 +02:00
Juan Lang 434cd6c609 iphlpapi: Honor GAA_FLAG_SKIP_FRIENDLY_NAME. 2010-10-12 12:17:50 +02:00
Juan Lang c44c16cf74 iphlpapi: Honor GAA_FLAG_SKIP_UNICAST. 2010-10-12 12:17:50 +02:00
Juan Lang 60354102c0 iphlpapi: Only return gateway addresses if GAA_FLAG_INCLUDE_ALL_GATEWAYS is specified. 2010-10-12 12:17:50 +02:00
Jeff Latimer 2b6ab9eb86 iphlpapi: Use Windows rather than Unix values to determine family. 2010-10-11 17:11:26 +02:00
Austin English 0ed04f87dd iphlpapi: Avoid using %n (clang). 2010-10-04 15:00:05 +02:00
Austin English d994917fc6 iphlpapi: Remove stray code (clang). 2010-10-04 15:00:05 +02:00
Juan Lang f6081f9352 iphlpapi: Fix inverted logic in mask comparison. 2010-09-28 17:33:20 +02:00
Andrew Nguyen fea9d8f171 iphlpapi: Remove useless loop and initialize gateway linked list next member to NULL. 2010-09-27 14:10:44 +02:00
Juan Lang e192beeb0d iphlpapi: Set adapter description in GetAdaptersAddresses. 2010-09-24 11:34:17 +02:00
Juan Lang c297dd2fac iphlpapi: Trace parameters to GetAdaptersAddresses. 2010-09-24 11:34:17 +02:00
Juan Lang f776aea60d iphlpapi: Set gateway addresses in GetAdaptersAddresses. 2010-09-24 11:34:16 +02:00
Juan Lang 0905dfc3e7 iphlpapi: Set ConnectionType in GetAdaptersAddresses. 2010-09-24 11:34:16 +02:00
Juan Lang df9191ae2d iphlpapi: Set flags for adapters returned by GetAdaptersAddresses. 2010-09-24 11:34:15 +02:00
Juan Lang f22cf51124 iphlpapi: Trace enumerated addresses. 2010-09-24 11:34:15 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Juan Lang acda9f6ba9 iphlpapi: Don't overwrite last IPv4 address with first IPv6 address. 2010-08-18 09:41:46 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Juan Lang 88c4210b4a iphlpapi: Remove an unused define. 2010-03-26 17:05:26 +01:00
Hans Leidekker c058490b69 dnsapi: _res is per-thread in glibc.
This mirrors Dan Kegel's fix for iphlpapi.
2010-03-23 17:30:25 +01:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Michael Stefaniuc 0bbce793c3 iphlpapi: Don't crash when enumerating PtP interfaces. 2010-03-16 11:49:27 +01:00
Juan Lang e3c0e30db1 iphlpapi: Implement GetAdaptersAddresses for IPv6 addresses. 2010-03-15 14:18:05 +01:00
Juan Lang 00fb356990 iphlpapi: Pass address family to adapterAddressesFromIndex. 2010-03-15 14:18:04 +01:00
Juan Lang 00f1c3d395 iphlpapi: Rename a function and variables to make it clearer they're related to IPv4 addresses. 2010-03-15 14:18:04 +01:00
Juan Lang 984c3b2ccb iphlpapi: Check for ifr_hwaddr member of struct ifreq. 2010-03-15 13:28:26 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Dan Kegel 22434f490a iphlpapi: _res is per-thread in glibc. 2010-02-08 17:49:47 +01:00
Roderick Colenbrander 715a398899 iphlpapi: Use winediag for icmp failure. 2009-12-08 17:43:52 +01:00
Huw Davies 8dd5c04c32 iphlpapi: Provide statistics on non-ethernet based interfaces too. 2009-12-02 13:06:08 +01:00
Hans Leidekker a57d86068e iphlpapi: Allow both direct and indirect default routes in GetBestRoute. 2009-10-12 17:07:05 +02:00
Francois Gouget 30a9264109 iphlpapi/tests: Fix compilation on systems that don't support nameless unions or structs. 2009-08-31 16:37:25 +02:00
Francois Gouget 11f7b5ba5a iphlpapi: Fix compilation on systems that don't support nameless structs or unions. 2009-08-31 12:41:37 +02:00
Juan Lang 0ddc6d5287 iphlpapi: Set adapter name in GetAdaptersAddresses. 2009-08-12 12:51:17 +02:00
Hans Leidekker cd1ed081de iphlpapi: Use a separate index to count addresses in GetAdaptersAddresses.
Fixes address enumeration when an interfaces is not configured
with an IP address or when an interface is configured with more
than one address.
2009-07-07 11:01:22 +02:00
Hans Leidekker 91b6ebefa8 iphlpapi/tests: Initialize a variable. 2009-07-03 13:06:17 +02:00
Francois Gouget 0c2430ce3d iphlpapi: Make getInterfacePhysicalByName() static. 2009-05-13 12:45:36 +02:00
Hans Leidekker 5b428fe55e iphlpapi: Add tests for GetAdaptersAddresses. 2009-04-29 15:50:25 +02:00
Hans Leidekker f0491f61ba iphlpapi: Implement GetAdaptersAddresses. 2009-04-29 15:50:25 +02:00
Alexandre Julliard a8c5bd9f42 iphlpapi/tests: Output the various tables in verbose mode. 2009-03-10 17:50:50 +01:00
Alexandre Julliard 4f67d8233d iphlpapi: Implemented AllocateAndGetIpForwardTableFromStack for Solaris. 2009-03-10 17:11:44 +01:00
Alexandre Julliard e5ec9aeb79 iphlpapi: Implemented AllocateAndGetIpNetTableFromStack for Solaris. 2009-03-10 17:10:08 +01:00
Alexandre Julliard 8f481bef2e iphlpapi: Implemented AllocateAndGetUdpTableFromStack for Solaris. 2009-03-10 17:08:28 +01:00
Alexandre Julliard 801d9c3a84 iphlpapi: Implemented AllocateAndGetTcpTableFromStack for Solaris. 2009-03-10 17:05:58 +01:00
Alexandre Julliard 320286af69 iphlpapi/tests: Don't pass a NULL size to GetTcp/UdpTable, it crashes on Vista. 2009-03-05 23:17:35 +01:00
Alexandre Julliard e8f9a6fc4f iphlpapi: Implemented getInterfaceStatsByName for Solaris. 2009-03-05 19:33:26 +01:00
Alexandre Julliard 026491d8e5 iphlpapi: Implemented GetUdpStatistics for Solaris. 2009-03-05 19:32:10 +01:00
Alexandre Julliard 62740f72d7 iphlpapi: Implemented GetTcpStatistics for Solaris. 2009-03-05 19:27:54 +01:00
Alexandre Julliard ac72b86603 iphlpapi: Implemented GetIpStatistics for Solaris. 2009-03-05 19:25:36 +01:00
Alexandre Julliard a82f443c0c iphlpapi: Implemented GetIcmpStatistics for Solaris. 2009-03-05 19:18:51 +01:00
Alexandre Julliard 4c7216fc77 iphlpapi: Simplify parsing of UDP stats. Only try to open /proc on Linux. 2009-03-05 16:16:24 +01:00
Alexandre Julliard 3a60d69b47 iphlpapi: Simplify parsing of TCP stats. Only try to open /proc on Linux. 2009-03-05 16:16:24 +01:00
Alexandre Julliard 988f6b50c7 iphlpapi: Simplify parsing of IP stats. Only try to open /proc on Linux. 2009-03-05 16:16:24 +01:00
Alexandre Julliard ea73002863 iphlpapi: Simplify parsing of interface data. Only try to open /proc on Linux. 2009-03-05 16:16:24 +01:00
Alexandre Julliard fc5ac51654 iphlpapi: Simplify parsing of ICMP stats. Only try to open /proc on Linux. 2009-03-05 16:16:23 +01:00
Alexandre Julliard b35e43d9a0 iphlpapi: Move the ip/icmp/tcp/udp statistics functions to ipstats.c. 2009-03-03 19:46:03 +01:00
Alexandre Julliard 6aade4122a iphlpapi: Remove the no longer needed getNumRoutes and GetNumWithOneHeader functions. 2009-03-02 13:20:46 +01:00
Alexandre Julliard 18a5a77bac iphlpapi: Remove the no longer needed getNumTcpEntries function. 2009-03-02 13:20:46 +01:00
Alexandre Julliard 3573c64970 iphlpapi: Remove the no longer needed getNumUdpEntries function. 2009-03-02 13:20:46 +01:00
Alexandre Julliard 7a5c5099bc iphlpapi: Remove the no longer needed getNumArpEntries function. 2009-03-02 13:20:46 +01:00
Alexandre Julliard 44f30a645e iphlpapi: Moved AllocateAndGetIpForwardTableFromStack implementation to ipstats.c. 2009-03-02 13:20:32 +01:00
Alexandre Julliard b406213c42 iphlpapi: Moved AllocateAndGetIpNetTableFromStack implementation to ipstats.c. 2009-03-02 12:51:48 +01:00
Alexandre Julliard bc08fb99d3 iphlpapi: Moved AllocateAndGetTcpTableFromStack implementation to ipstats.c. 2009-03-02 12:51:02 +01:00
Alexandre Julliard 95827a8237 iphlpapi: Moved AllocateAndGetUdpTableFromStack implementation to ipstats.c. 2009-03-02 12:50:30 +01:00
Alexandre Julliard 3ce9eb0f85 iphlpapi: Reimplement GetIpForwardTable to avoid parsing the same information three times. 2009-03-02 12:49:09 +01:00
Alexandre Julliard add9e025c2 iphlpapi: Reimplement GetIpNetTable to avoid parsing the same information three times. 2009-03-02 12:45:58 +01:00
Alexandre Julliard 53d522bc54 iphlpapi: Reimplement GetTcpTable to avoid parsing the same information three times. 2009-03-02 12:45:12 +01:00
Alexandre Julliard d069e498e1 iphlpapi: Reimplement GetUdpTable to avoid parsing the same information three times. 2009-03-02 12:43:33 +01:00
Thomas Kho 3a649b9072 iphlpapi: Fix Solaris build error due to ERR redefinition. 2009-02-26 12:29:51 +01:00
Austin English ac0252db33 configure.ac: Check for icps_outhist struct. 2009-02-02 15:21:42 +01:00
Austin English 68f2db299d configure: Check for xinpgen struct. 2009-01-30 14:02:30 +01:00
Gerald Pfeifer ee1d767fd8 iphlpapi: #define RTF_LLINFO if not in system headers. 2009-01-29 12:19:11 +01:00
Austin English 507f6710ba iphlpapi: Fix includes for NetBSD. 2009-01-27 11:08:58 +01:00
Austin English 337067a89d iphlpapi: Include netinet/if_inarp.h for NetBSD. 2009-01-23 13:11:42 +01:00
Austin English 8b1959134e iphplapi: Include <sys/timeout.h> for OpenBSD/NetBSD. 2009-01-22 15:28:24 +01:00