diff options
author | Dimitri Papadopoulos <dimitri_at@users.sf.net> | 2006-04-05 16:05:04 +0000 |
---|---|---|
committer | Dimitri Papadopoulos <dimitri_at@users.sf.net> | 2006-04-05 16:05:04 +0000 |
commit | 3728ca65381bdcbfe2f87b8710dd4e5c651cfae9 (patch) | |
tree | 73d1a6101e401e6218998edb338fe348cf6d9e9c /winsup/w32api/include/iphlpapi.h | |
parent | 273243a857aaf7cd4270009ad9fd324709f37614 (diff) | |
download | newlib-3728ca65381bdcbfe2f87b8710dd4e5c651cfae9.zip newlib-3728ca65381bdcbfe2f87b8710dd4e5c651cfae9.tar.gz newlib-3728ca65381bdcbfe2f87b8710dd4e5c651cfae9.tar.bz2 |
* include/iphlpapi.h (GAA_FLAG_*): Define.
(GetAdaptersAddresses): Add function declaration.
* lib/iphlpapi.def (GetAdaptersAddresses): Add function stub.
Thanks to: ross <rossboulet at users dot sf dot net>
Diffstat (limited to 'winsup/w32api/include/iphlpapi.h')
-rw-r--r-- | winsup/w32api/include/iphlpapi.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/winsup/w32api/include/iphlpapi.h b/winsup/w32api/include/iphlpapi.h index 214c53e..cddf4fd 100644 --- a/winsup/w32api/include/iphlpapi.h +++ b/winsup/w32api/include/iphlpapi.h @@ -10,6 +10,16 @@ #ifdef __cplusplus extern "C" { #endif + +#if (_WIN32_WINNT >= 0x0501) +#define GAA_FLAG_SKIP_UNICAST 0x00000001 +#define GAA_FLAG_SKIP_ANYCAST 0x00000002 +#define GAA_FLAG_SKIP_MULTICAST 0x00000004 +#define GAA_FLAG_SKIP_DNS_SERVER 0x00000008 +#define GAA_FLAG_INCLUDE_PREFIX 0x00000010 +#define GAA_FLAG_SKIP_FRIENDLY_NAME 0x00000020 +#endif + DWORD WINAPI AddIPAddress(IPAddr,IPMask,DWORD,PULONG,PULONG); DWORD WINAPI CreateIpForwardEntry(PMIB_IPFORWARDROW); DWORD WINAPI CreateIpNetEntry(PMIB_IPNETROW); @@ -20,6 +30,9 @@ DWORD WINAPI DeleteIpNetEntry(PMIB_IPNETROW); DWORD WINAPI DeleteProxyArpEntry(DWORD,DWORD,DWORD); DWORD WINAPI EnableRouter(HANDLE*,OVERLAPPED*); DWORD WINAPI FlushIpNetTable(DWORD); +#if (_WIN32_WINNT >= 0x0501) +ULONG WINAPI GetAdaptersAddresses(ULONG,ULONG,PVOID,PIP_ADAPTER_ADDRESSES,PULONG); +#endif DWORD WINAPI GetAdapterIndex(LPWSTR,PULONG); DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO,PULONG); DWORD WINAPI GetBestInterface(IPAddr,PDWORD); @@ -54,6 +67,7 @@ DWORD WINAPI SetIpStatistics(PMIB_IPSTATS); DWORD WINAPI SetIpTTL(UINT); DWORD WINAPI SetTcpEntry(PMIB_TCPROW); DWORD WINAPI UnenableRouter(OVERLAPPED*, LPDWORD); + #ifdef __cplusplus } #endif |