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
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
Bruno Jesus
084bcaa76b
iphlpapi: Set MIB_IPADDR_PRIMARY as wType for GetIpAddrTable entries.
2015-05-14 14:24:44 +09:00
Hans Leidekker
5674f16649
iphlpapi: Add support for GAA_FLAG_INCLUDE_PREFIX in GetAdaptersAddresses.
2013-10-08 15:58:48 +02:00
Frédéric Delanoy
1ca0c4a617
iphlpapi: Use BOOL type where appropriate.
2013-10-07 13:32:06 +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
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
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
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
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