Commit 5c78657b authored by Alexandre Julliard's avatar Alexandre Julliard

iphlpapi/tests: Reduce window test verbosity.

parent 692b118f
...@@ -1423,12 +1423,13 @@ static void test_GetAdaptersAddresses(void) ...@@ -1423,12 +1423,13 @@ static void test_GetAdaptersAddresses(void)
ok(aa->Description != NULL, "Description is not a valid pointer\n"); ok(aa->Description != NULL, "Description is not a valid pointer\n");
ok(aa->FriendlyName != NULL, "FriendlyName is not a valid pointer\n"); ok(aa->FriendlyName != NULL, "FriendlyName is not a valid pointer\n");
trace("\n"); for (i = 0; i < aa->PhysicalAddressLength; i++)
trace("Length: %u\n", S(U(*aa)).Length); sprintf(temp + i * 3, "%02X-", aa->PhysicalAddress[i]);
trace("IfIndex: %u\n", S(U(*aa)).IfIndex); temp[i ? i * 3 - 1 : 0] = '\0';
trace("Next: %p\n", aa->Next); trace("idx %u name %s %s dns %s descr %s phys %s mtu %u flags %08x type %u\n",
trace("AdapterName: %s\n", aa->AdapterName); S(U(*aa)).IfIndex, aa->AdapterName,
trace("FirstUnicastAddress: %p\n", aa->FirstUnicastAddress); wine_dbgstr_w(aa->FriendlyName), wine_dbgstr_w(aa->DnsSuffix),
wine_dbgstr_w(aa->Description), temp, aa->Mtu, aa->Flags, aa->IfType );
ua = aa->FirstUnicastAddress; ua = aa->FirstUnicastAddress;
while (ua) while (ua)
{ {
...@@ -1450,79 +1451,29 @@ static void test_GetAdaptersAddresses(void) ...@@ -1450,79 +1451,29 @@ static void test_GetAdaptersAddresses(void)
/* Is the address ok in the network (not duplicated)? */ /* Is the address ok in the network (not duplicated)? */
ok(ua->DadState != IpDadStateInvalid && ua->DadState != IpDadStateDuplicate, ok(ua->DadState != IpDadStateInvalid && ua->DadState != IpDadStateDuplicate,
"bad address duplication value %d\n", ua->DadState); "bad address duplication value %d\n", ua->DadState);
trace("\tLength: %u\n", S(U(*ua)).Length); trace(" flags %08x origin %u/%u state %u lifetime %u/%u/%u prefix %u\n",
trace("\tFlags: 0x%08x\n", S(U(*ua)).Flags); S(U(*ua)).Flags, ua->PrefixOrigin, ua->SuffixOrigin, ua->DadState,
trace("\tNext: %p\n", ua->Next); ua->ValidLifetime, ua->PreferredLifetime, ua->LeaseLifetime,
trace("\tAddress.lpSockaddr: %p\n", ua->Address.lpSockaddr); S(U(*ua)).Length < sizeof(IP_ADAPTER_UNICAST_ADDRESS_LH) ? 0 : ua->OnLinkPrefixLength);
trace("\tAddress.iSockaddrLength: %d\n", ua->Address.iSockaddrLength);
trace("\tPrefixOrigin: %u\n", ua->PrefixOrigin);
trace("\tSuffixOrigin: %u\n", ua->SuffixOrigin);
trace("\tDadState: %u\n", ua->DadState);
trace("\tValidLifetime: %u seconds\n", ua->ValidLifetime);
trace("\tPreferredLifetime: %u seconds\n", ua->PreferredLifetime);
trace("\tLeaseLifetime: %u seconds\n", ua->LeaseLifetime);
if (S(U(*ua)).Length < sizeof(IP_ADAPTER_UNICAST_ADDRESS_LH))
{
trace("\n");
ua = ua->Next;
continue;
}
trace("\tOnLinkPrefixLength: %u\n", ua->OnLinkPrefixLength);
trace("\n");
ua = ua->Next; ua = ua->Next;
} }
trace("FirstAnycastAddress: %p\n", aa->FirstAnycastAddress);
trace("FirstMulticastAddress: %p\n", aa->FirstMulticastAddress);
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);
trace("FriendlyName: %s %p\n", wine_dbgstr_w(aa->FriendlyName), aa->FriendlyName);
trace("PhysicalAddressLength: %u\n", aa->PhysicalAddressLength);
for (i = 0; i < aa->PhysicalAddressLength; i++)
sprintf(temp + i * 3, "%02X-", aa->PhysicalAddress[i]);
temp[i ? i * 3 - 1 : 0] = '\0';
trace("PhysicalAddress: %s\n", temp);
trace("Flags: 0x%08x\n", aa->Flags);
trace("Mtu: %u\n", aa->Mtu);
trace("IfType: %u\n", aa->IfType);
trace("OperStatus: %u\n", aa->OperStatus);
trace("Ipv6IfIndex: %u\n", aa->Ipv6IfIndex);
for (i = 0, temp[0] = '\0'; i < sizeof(aa->ZoneIndices) / sizeof(aa->ZoneIndices[0]); i++) for (i = 0, temp[0] = '\0'; i < sizeof(aa->ZoneIndices) / sizeof(aa->ZoneIndices[0]); i++)
sprintf(temp + strlen(temp), "%d ", aa->ZoneIndices[i]); sprintf(temp + strlen(temp), "%d ", aa->ZoneIndices[i]);
trace("ZoneIndices: %s\n", temp); trace("status %u index %u zone %s\n", aa->OperStatus, aa->Ipv6IfIndex, temp );
trace("FirstPrefix: %p\n", aa->FirstPrefix);
prefix = aa->FirstPrefix; prefix = aa->FirstPrefix;
while (prefix) while (prefix)
{ {
trace("\tLength: %u\n", S(U(*prefix)).Length); trace( " prefix %u/%u flags %08x\n", prefix->Address.iSockaddrLength,
trace("\tFlags: 0x%08x\n", S(U(*prefix)).Flags); prefix->PrefixLength, S(U(*prefix)).Flags );
trace("\tNext: %p\n", prefix->Next);
trace("\tAddress.lpSockaddr: %p\n", prefix->Address.lpSockaddr);
trace("\tAddress.iSockaddrLength: %d\n", prefix->Address.iSockaddrLength);
trace("\tPrefixLength: %u\n", prefix->PrefixLength);
trace("\n");
prefix = prefix->Next; prefix = prefix->Next;
} }
if (S(U(*aa)).Length < sizeof(IP_ADAPTER_ADDRESSES_LH)) continue; if (S(U(*aa)).Length < sizeof(IP_ADAPTER_ADDRESSES_LH)) continue;
trace("TransmitLinkSpeed: %s\n", wine_dbgstr_longlong(aa->TransmitLinkSpeed)); trace("speed %s/%s metrics %u/%u guid %s type %u/%u\n",
trace("ReceiveLinkSpeed: %s\n", wine_dbgstr_longlong(aa->ReceiveLinkSpeed)); wine_dbgstr_longlong(aa->TransmitLinkSpeed),
trace("FirstWinsServerAddress:%p\n", aa->FirstWinsServerAddress); wine_dbgstr_longlong(aa->ReceiveLinkSpeed),
trace("FirstGatewayAddress: %p\n", aa->FirstGatewayAddress); aa->Ipv4Metric, aa->Ipv6Metric, wine_dbgstr_guid((GUID*) &aa->NetworkGuid),
trace("Ipv4Metric: %u\n", aa->Ipv4Metric); aa->ConnectionType, aa->TunnelType);
trace("Ipv6Metric: %u\n", aa->Ipv6Metric);
trace("Luid: %p\n", &aa->Luid);
trace("Dhcpv4Server: %p\n", &aa->Dhcpv4Server);
trace("CompartmentId: %u\n", aa->CompartmentId);
trace("NetworkGuid: %s\n", wine_dbgstr_guid((GUID*) &aa->NetworkGuid));
trace("ConnectionType: %u\n", aa->ConnectionType);
trace("TunnelType: %u\n", aa->TunnelType);
trace("Dhcpv6Server: %p\n", &aa->Dhcpv6Server);
trace("Dhcpv6ClientDuidLength:%u\n", aa->Dhcpv6ClientDuidLength);
trace("Dhcpv6ClientDuid: %p\n", aa->Dhcpv6ClientDuid);
trace("Dhcpv6Iaid: %u\n", aa->Dhcpv6Iaid);
trace("FirstDnsSuffix: %p\n", aa->FirstDnsSuffix);
trace("\n");
if (pConvertInterfaceLuidToGuid) if (pConvertInterfaceLuidToGuid)
{ {
......
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