Commit Graph

41 Commits

Author SHA1 Message Date
Juan Lang 25b014b6e7 iphlpapi: Implement retrieving IPv4 addresses using getifaddrs, when available. 2011-11-14 15:25:26 +01:00
Gerald Pfeifer c053e6680c iphlpapi: Make addrLen unsigned in getInterfacePhysicalByName. 2011-05-23 11:21:36 +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 88c4210b4a iphlpapi: Remove an unused define. 2010-03-26 17:05:26 +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 984c3b2ccb iphlpapi: Check for ifr_hwaddr member of struct ifreq. 2010-03-15 13:28:26 +01:00
Francois Gouget 0c2430ce3d iphlpapi: Make getInterfacePhysicalByName() static. 2009-05-13 12:45:36 +02:00
Hans Leidekker f0491f61ba iphlpapi: Implement GetAdaptersAddresses. 2009-04-29 15:50:25 +02:00
Andrew Talbot 0592ca5fb0 iphlpapi: Remove unused function. 2009-01-09 14:56:08 +01:00
Juan Lang 14725934bb iphlpapi: Avoid HEAP_ZERO_MEMORY where it isn't needed. 2007-11-16 12:36:15 +01:00
Juan Lang 0502de41ae iphlpapi: Don't allocate gobs of memory if there are no non-loopback interfaces. 2007-11-16 12:36:07 +01:00
Juan Lang e1a836933f iphlpapi: Don't allocate gobs of memory if the IP address table is empty. 2007-11-16 12:36:01 +01:00
Juan Lang 9ec6e33e32 iphlpapi: Don't allocate gobs of memory if interface table is empty. 2007-11-16 12:35:55 +01:00
Mark Adams 1e263e663b iphlpapi: Filter out no-ip addresses when building ip address table. 2007-01-26 12:56:42 +01:00
Mark Adams a91d69190e iphlpapi: Clarify interface counting. 2007-01-26 12:56:28 +01:00
Ken Thomases 6b033cc1e6 iphlpapi: Fixed a problem with enumerating network interfaces.
Keep increasing the buffer until the returned length is more than two
records smaller than the buffer we provided.
2006-12-21 14:47:20 +01:00
Francois Gouget bb8e625b5b Assorted spelling fixes. 2006-12-05 10:31:47 +01:00
Marcus Meissner 2c8aeb6db1 iphlpapi: NetBSD needs sys/param.h. 2006-10-24 11:31:07 +02:00
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Vitaly Lipatov f382722390 iphplapi: Define IF_NAMESIZE if missing. 2006-02-24 21:13:54 +01:00
Juan Lang 540dca3259 iphlpapi: Reimplement interface enumeration.
Implement interface enumeration based on if_nameindex, based on a
suggestion by Michael Ost
2006-01-27 19:19:32 +01:00
Juan Lang 201cdcc462 iphlpapi: Remove one IP address per interface restriction.
- remove restriction of one IP address per interface
- remove dead code, and make static functions that can be
- update comments and copyright notice
2006-01-25 13:14:12 +01:00
Juan Lang 5cd6b34259 iphlpapi: Clean up memory allocation.
- pass heap to allocate from directly to helper functions, instead of
  unnecessarily copying returned data
- use public types rather than internal ones
- make sure GetBestRoute doesn't return bogus matches
2006-01-24 12:18:50 +01:00
Juan Lang 53e634bec6 iphlpapi: Remove redundant comments and fix typos. 2006-01-20 16:16:56 +01:00
Juan Lang 36ac9f8665 iphlpapi: Fix a couple of file descriptor leaks. 2005-12-13 11:11:53 +01:00
Robert Shearman 4fee52683b Fix size passed to lstrcpynA function - sizeof(string) == 4 not 16 as
needed.
2005-06-13 10:01:20 +00:00
Peter Berg Larsen e732fc023d Janitorial: Get rid of strncpy/strncpyW. 2005-03-28 14:17:51 +00:00
Jakob Eriksson 9ed61de9a2 Get rid of HeapAlloc casts. 2005-03-24 21:01:35 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Juan Lang 76d8779c6f - use Heap functions rather than libc for mem allocation
- document a bunch of functions
2004-12-13 13:21:39 +00:00
Hans Leidekker fe442b21f7 Fix signed/unsigned comparison warnings. 2004-09-08 01:23:57 +00:00
Robert Lunnon 761fce5261 Corrected code to acquire mtu under Solaris. 2004-01-14 05:31:23 +00:00
Juan Lang 50b7cf0433 - fixes thread safety issues
- fixes problems with non-IP (e.g. IPX) addresses
- updates comments to reflect winsock, netapi32 changes
2003-11-30 06:03:21 +00:00
Dmitry Timoshkov 2581db8f6a Fixed some problems found while compiling and linking Wine under
Cygwin.
2003-10-14 05:27:43 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Patrik Stridvall ba78aac406 Fixed some issues found by winapi_check. 2003-08-08 21:07:23 +00:00
Robert Lunnon 00c74e940d Fixed some compile problems under Solaris. 2003-07-09 21:55:09 +00:00
Alexandre Julliard b168f12a48 Fixed wrong length argument in getInterfacePhysicalByName. 2003-05-21 18:26:00 +00:00
Alexandre Julliard 18ae9b3da6 Fixed some string overflows. 2003-05-13 04:49:15 +00:00
Juan Lang 38fa5ad1bc Added an implementation of iphlpapi.dll; most Get* functions
introduced through Win98 are included.
2003-05-13 03:32:20 +00:00