commit 9a598bcb97ddcb5abe451e81efad6525fd5f6eee
Author: Andr�� Hentschel <nerv@dawncrow.de>
Date:   Mon Feb 20 22:13:11 2017 +0100

    iphlpapi temporary trace additions

diff --git a/dlls/iphlpapi/tests/iphlpapi.c b/dlls/iphlpapi/tests/iphlpapi.c
index e0701a3..7dda798 100644
--- a/dlls/iphlpapi/tests/iphlpapi.c
+++ b/dlls/iphlpapi/tests/iphlpapi.c
@@ -1360,7 +1360,6 @@ static void test_GetAdaptersAddresses(void)
 {
     ULONG ret, size, osize, i;
     IP_ADAPTER_ADDRESSES *aa, *ptr;
-    IP_ADAPTER_UNICAST_ADDRESS *ua;
 
     if (!pGetAdaptersAddresses)
     {
@@ -1394,6 +1393,9 @@ static void test_GetAdaptersAddresses(void)
     {
         char temp[128];
         IP_ADAPTER_PREFIX *prefix;
+        IP_ADAPTER_ANYCAST_ADDRESS *anya;
+        IP_ADAPTER_MULTICAST_ADDRESS *ma;
+        IP_ADAPTER_UNICAST_ADDRESS *ua;
 
         ok(S(U(*aa)).Length == sizeof(IP_ADAPTER_ADDRESSES_LH) ||
            S(U(*aa)).Length == sizeof(IP_ADAPTER_ADDRESSES_XP),
@@ -1433,6 +1435,16 @@ static void test_GetAdaptersAddresses(void)
             trace("\tFlags:                   0x%08x\n", S(U(*ua)).Flags);
             trace("\tNext:                    %p\n", ua->Next);
             trace("\tAddress.lpSockaddr:      %p\n", ua->Address.lpSockaddr);
+            {
+                char tmpbuf[512] = "", tmpbuf2[16];
+                unsigned char *bsock = (void*)ua->Address.lpSockaddr;
+                for (i = 0; i < ua->Address.iSockaddrLength; i++)
+                {
+                    sprintf(tmpbuf2, "%u.", bsock[i]);
+                    strcat(tmpbuf, tmpbuf2);
+                }
+                trace("\tAddress=%s\n", tmpbuf);
+            }
             trace("\tAddress.iSockaddrLength: %d\n", ua->Address.iSockaddrLength);
             trace("\tPrefixOrigin:            %u\n", ua->PrefixOrigin);
             trace("\tSuffixOrigin:            %u\n", ua->SuffixOrigin);
@@ -1451,7 +1463,39 @@ static void test_GetAdaptersAddresses(void)
             ua = ua->Next;
         }
         trace("FirstAnycastAddress:   %p\n", aa->FirstAnycastAddress);
+        anya = aa->FirstAnycastAddress;
+        while (anya)
+        {
+            trace("\tLength:                  %u\n", S(U(*anya)).Length);
+            trace("\tFlags:                   0x%08x\n", S(U(*anya)).Flags);
+            trace("\tNext:                    %p\n", anya->Next);
+            trace("\tAddress.lpSockaddr:      %p\n", anya->Address.lpSockaddr);
+            trace("\tAddress.iSockaddrLength: %d\n", anya->Address.iSockaddrLength);
+            trace("\n");
+            anya = anya->Next;
+        }
         trace("FirstMulticastAddress: %p\n", aa->FirstMulticastAddress);
+        ma = aa->FirstMulticastAddress;
+        while (ma)
+        {
+            trace("\tLength:                  %u\n", S(U(*ma)).Length);
+            trace("\tFlags:                   0x%08x\n", S(U(*ma)).Flags);
+            trace("\tNext:                    %p\n", ma->Next);
+            trace("\tAddress.lpSockaddr:      %p\n", ma->Address.lpSockaddr);
+            {
+                char tmpbuf[512] = "", tmpbuf2[16];
+                unsigned char *bsock = (void*)ma->Address.lpSockaddr;
+                for (i = 0; i < ma->Address.iSockaddrLength; i++)
+                {
+                    sprintf(tmpbuf2, "%u.", bsock[i]);
+                    strcat(tmpbuf, tmpbuf2);
+                }
+                trace("\tAddress=%s\n", tmpbuf);
+            }
+            trace("\tAddress.iSockaddrLength: %d\n", ma->Address.iSockaddrLength);
+            trace("\n");
+            ma = ma->Next;
+        }
         trace("FirstDnsServerAddress: %p\n", aa->FirstDnsServerAddress);
         trace("DnsSuffix:             %s %p\n", wine_dbgstr_w(aa->DnsSuffix), aa->DnsSuffix);
         trace("Description:           %s %p\n", wine_dbgstr_w(aa->Description), aa->Description);
@@ -2042,6 +2086,17 @@ static void test_GetUnicastIpAddressEntry(void)
             memcpy(&row.Address, ua->Address.lpSockaddr, ua->Address.iSockaddrLength);
             ret = pGetUnicastIpAddressEntry( &row );
             ok( ret == NO_ERROR, "got %u\n", ret );
+            {
+                char tmpbuf[512] = "", tmpbuf2[16];
+                unsigned char *bsock = (void*)ua->Address.lpSockaddr;
+                int i;
+                for (i = 0; i < ua->Address.iSockaddrLength; i++)
+                {
+                    sprintf(tmpbuf2, "%u.", bsock[i]);
+                    strcat(tmpbuf, tmpbuf2);
+                }
+                trace("\tIfType=%d or %d\tAddress=%s\n", aa->Luid.Info.IfType, aa->IfType, tmpbuf);
+            }
             if (ret == NO_ERROR)
             {
                 ok(row.InterfaceLuid.Info.Reserved == aa->Luid.Info.Reserved, "Expected %d, got %d\n",
