iphlpapi: Add GetIpNetTable2 stub.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45036
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Austin English 2018-09-25 15:59:20 -05:00 committed by Alexandre Julliard
parent 09a785cb4d
commit 2ffe089c95
4 changed files with 56 additions and 1 deletions

View File

@ -108,7 +108,7 @@
#@ stub GetIpInterfaceTable #@ stub GetIpInterfaceTable
#@ stub GetIpNetEntry2 #@ stub GetIpNetEntry2
@ stdcall GetIpNetTable( ptr ptr long ) @ stdcall GetIpNetTable( ptr ptr long )
#@ stub GetIpNetTable2 @ stdcall GetIpNetTable2( long ptr )
@ stub GetIpNetTableFromStack @ stub GetIpNetTableFromStack
#@ stub GetIpPathEntry #@ stub GetIpPathEntry
#@ stub GetIpPathTable #@ stub GetIpPathTable

View File

@ -3293,3 +3293,14 @@ DWORD WINAPI GetIpForwardTable2(ADDRESS_FAMILY family, PMIB_IPFORWARD_TABLE2 *ta
if (!once++) FIXME("(%u %p): stub\n", family, table); if (!once++) FIXME("(%u %p): stub\n", family, table);
return ERROR_NOT_SUPPORTED; return ERROR_NOT_SUPPORTED;
} }
/******************************************************************
* GetIpNetTable2 (IPHLPAPI.@)
*/
DWORD WINAPI GetIpNetTable2(ADDRESS_FAMILY family, PMIB_IPNET_TABLE2 *table)
{
static int once;
if (!once++) FIXME("(%u %p): stub\n", family, table);
return ERROR_NOT_SUPPORTED;
}

View File

@ -193,6 +193,38 @@ typedef struct _MIB_IPFORWARD_TABLE2
MIB_IPFORWARD_ROW2 Table[ANY_SIZE]; MIB_IPFORWARD_ROW2 Table[ANY_SIZE];
} MIB_IPFORWARD_TABLE2, *PMIB_IPFORWARD_TABLE2; } MIB_IPFORWARD_TABLE2, *PMIB_IPFORWARD_TABLE2;
typedef struct _MIB_IPNET_ROW2
{
SOCKADDR_INET Address;
NET_IFINDEX InterfaceIndex;
NET_LUID InterfaceLuid;
UCHAR PhysicalAddress[IF_MAX_PHYS_ADDRESS_LENGTH];
ULONG PhysicalAddressLength;
NL_NEIGHBOR_STATE State;
union
{
struct
{
BOOLEAN IsRouter : 1;
BOOLEAN IsUnreachable : 1;
} DUMMYSTRUCTNAME;
UCHAR Flags;
} DUMMYUNIONNAME;
union
{
ULONG LastReachable;
ULONG LastUnreachable;
} ReachabilityTime;
} MIB_IPNET_ROW2, *PMIB_IPNET_ROW2;
typedef struct _MIB_IPNET_TABLE2
{
ULONG NumEntries;
MIB_IPNET_ROW2 Table[ANY_SIZE];
} MIB_IPNET_TABLE2, *PMIB_IPNET_TABLE2;
typedef VOID (WINAPI *PIPINTERFACE_CHANGE_CALLBACK)(PVOID, PMIB_IPINTERFACE_ROW, typedef VOID (WINAPI *PIPINTERFACE_CHANGE_CALLBACK)(PVOID, PMIB_IPINTERFACE_ROW,
MIB_NOTIFICATION_TYPE); MIB_NOTIFICATION_TYPE);
typedef VOID (WINAPI *PUNICAST_IPADDRESS_CHANGE_CALLBACK)(PVOID, PMIB_UNICASTIPADDRESS_ROW, typedef VOID (WINAPI *PUNICAST_IPADDRESS_CHANGE_CALLBACK)(PVOID, PMIB_UNICASTIPADDRESS_ROW,

View File

@ -111,4 +111,16 @@ typedef struct _NL_INTERFACE_OFFLOAD_ROD
BOOLEAN TlGiantSendOffloadSupported : 1; BOOLEAN TlGiantSendOffloadSupported : 1;
} NL_INTERFACE_OFFLOAD_ROD, *PNL_INTERFACE_OFFLOAD_ROD; } NL_INTERFACE_OFFLOAD_ROD, *PNL_INTERFACE_OFFLOAD_ROD;
typedef enum _NL_NEIGHBOR_STATE
{
NlnsUnreachable,
NlnsIncomplete,
NlnsProbe,
NlnsDelay,
NlnsStale,
NlnsReachable,
NlnsPermanent,
NlnsMaximum,
} NL_NEIGHBOR_STATE, *PNL_NEIGHBOR_STATE;
#endif /* __WINE_NLDEF_H */ #endif /* __WINE_NLDEF_H */