Commit 6b4dcb3f authored by Bruno Jesus's avatar Bruno Jesus Committed by Alexandre Julliard

iphlpapi: Add a stub for CreateSortedAddressPairs().

parent fe127ac3
......@@ -46,7 +46,7 @@
#@ stub CreatePersistentTcpPortReservation
#@ stub CreatePersistentUdpPortReservation
@ stdcall CreateProxyArpEntry( long long long )
#@ stub CreateSortedAddressPairs
@ stdcall CreateSortedAddressPairs( ptr long ptr long long ptr ptr )
#@ stub CreateUnicastIpAddressEntry
#@ stub DeleteAnycastIpAddressEntry
@ stdcall DeleteIPAddress( long )
......
......@@ -280,6 +280,28 @@ DWORD WINAPI CreateProxyArpEntry(DWORD dwAddress, DWORD dwMask, DWORD dwIfIndex)
/******************************************************************
* CreateSortedAddressPairs (IPHLPAPI.@)
*/
DWORD WINAPI CreateSortedAddressPairs(const PSOCKADDR_IN6 source, DWORD sourcecount,
const PSOCKADDR_IN6 destination, DWORD destinationcount,
DWORD sortoptions,
PSOCKADDR_IN6_PAIR *sortedaddr, DWORD *sortedcount)
{
FIXME("(source %p, sourcecount %d, destination %p, destcount %d, sortoptions %x,"
" sortedaddr %p, sortedcount %p): stub\n", source, sourcecount, destination,
destinationcount, sortoptions, sortedaddr, sortedcount);
if (source || sourcecount || !destination || !sortedaddr || !sortedcount || destinationcount > 500)
return ERROR_INVALID_PARAMETER;
/* Returning not supported tells the client we don't have IPv6 support
* so applications can fallback to IPv4.
*/
return ERROR_NOT_SUPPORTED;
}
/******************************************************************
* DeleteIPAddress (IPHLPAPI.@)
*
* Delete an IP address added with AddIPAddress().
......
......@@ -129,6 +129,12 @@ typedef struct WS(sockaddr_in6)
ULONG sin6_scope_id;
} SOCKADDR_IN6,*PSOCKADDR_IN6, *LPSOCKADDR_IN6;
typedef struct WS(sockaddr_in6_pair)
{
PSOCKADDR_IN6 SourceAddress;
PSOCKADDR_IN6 DestinationAddress;
} SOCKADDR_IN6_PAIR, *PSOCKADDR_IN6_PAIR;
/*
* Multicast group information
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment