Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5c78657b
Commit
5c78657b
authored
Feb 14, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi/tests: Reduce window test verbosity.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
692b118f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
68 deletions
+19
-68
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+19
-68
No files found.
dlls/iphlpapi/tests/iphlpapi.c
View file @
5c78657b
...
...
@@ -1423,12 +1423,13 @@ static void test_GetAdaptersAddresses(void)
ok
(
aa
->
Description
!=
NULL
,
"Description is not a valid pointer
\n
"
);
ok
(
aa
->
FriendlyName
!=
NULL
,
"FriendlyName is not a valid pointer
\n
"
);
trace
(
"
\n
"
);
trace
(
"Length: %u
\n
"
,
S
(
U
(
*
aa
)).
Length
);
trace
(
"IfIndex: %u
\n
"
,
S
(
U
(
*
aa
)).
IfIndex
);
trace
(
"Next: %p
\n
"
,
aa
->
Next
);
trace
(
"AdapterName: %s
\n
"
,
aa
->
AdapterName
);
trace
(
"FirstUnicastAddress: %p
\n
"
,
aa
->
FirstUnicastAddress
);
for
(
i
=
0
;
i
<
aa
->
PhysicalAddressLength
;
i
++
)
sprintf
(
temp
+
i
*
3
,
"%02X-"
,
aa
->
PhysicalAddress
[
i
]);
temp
[
i
?
i
*
3
-
1
:
0
]
=
'\0'
;
trace
(
"idx %u name %s %s dns %s descr %s phys %s mtu %u flags %08x type %u
\n
"
,
S
(
U
(
*
aa
)).
IfIndex
,
aa
->
AdapterName
,
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
;
while
(
ua
)
{
...
...
@@ -1450,79 +1451,29 @@ static void test_GetAdaptersAddresses(void)
/* Is the address ok in the network (not duplicated)? */
ok
(
ua
->
DadState
!=
IpDadStateInvalid
&&
ua
->
DadState
!=
IpDadStateDuplicate
,
"bad address duplication value %d
\n
"
,
ua
->
DadState
);
trace
(
"
\t
Length: %u
\n
"
,
S
(
U
(
*
ua
)).
Length
);
trace
(
"
\t
Flags: 0x%08x
\n
"
,
S
(
U
(
*
ua
)).
Flags
);
trace
(
"
\t
Next: %p
\n
"
,
ua
->
Next
);
trace
(
"
\t
Address.lpSockaddr: %p
\n
"
,
ua
->
Address
.
lpSockaddr
);
trace
(
"
\t
Address.iSockaddrLength: %d
\n
"
,
ua
->
Address
.
iSockaddrLength
);
trace
(
"
\t
PrefixOrigin: %u
\n
"
,
ua
->
PrefixOrigin
);
trace
(
"
\t
SuffixOrigin: %u
\n
"
,
ua
->
SuffixOrigin
);
trace
(
"
\t
DadState: %u
\n
"
,
ua
->
DadState
);
trace
(
"
\t
ValidLifetime: %u seconds
\n
"
,
ua
->
ValidLifetime
);
trace
(
"
\t
PreferredLifetime: %u seconds
\n
"
,
ua
->
PreferredLifetime
);
trace
(
"
\t
LeaseLifetime: %u seconds
\n
"
,
ua
->
LeaseLifetime
);
if
(
S
(
U
(
*
ua
)).
Length
<
sizeof
(
IP_ADAPTER_UNICAST_ADDRESS_LH
))
{
trace
(
"
\n
"
);
ua
=
ua
->
Next
;
continue
;
}
trace
(
"
\t
OnLinkPrefixLength: %u
\n
"
,
ua
->
OnLinkPrefixLength
);
trace
(
"
\n
"
);
trace
(
" flags %08x origin %u/%u state %u lifetime %u/%u/%u prefix %u
\n
"
,
S
(
U
(
*
ua
)).
Flags
,
ua
->
PrefixOrigin
,
ua
->
SuffixOrigin
,
ua
->
DadState
,
ua
->
ValidLifetime
,
ua
->
PreferredLifetime
,
ua
->
LeaseLifetime
,
S
(
U
(
*
ua
)).
Length
<
sizeof
(
IP_ADAPTER_UNICAST_ADDRESS_LH
)
?
0
:
ua
->
OnLinkPrefixLength
);
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
++
)
sprintf
(
temp
+
strlen
(
temp
),
"%d "
,
aa
->
ZoneIndices
[
i
]);
trace
(
"ZoneIndices: %s
\n
"
,
temp
);
trace
(
"FirstPrefix: %p
\n
"
,
aa
->
FirstPrefix
);
trace
(
"status %u index %u zone %s
\n
"
,
aa
->
OperStatus
,
aa
->
Ipv6IfIndex
,
temp
);
prefix
=
aa
->
FirstPrefix
;
while
(
prefix
)
{
trace
(
"
\t
Length: %u
\n
"
,
S
(
U
(
*
prefix
)).
Length
);
trace
(
"
\t
Flags: 0x%08x
\n
"
,
S
(
U
(
*
prefix
)).
Flags
);
trace
(
"
\t
Next: %p
\n
"
,
prefix
->
Next
);
trace
(
"
\t
Address.lpSockaddr: %p
\n
"
,
prefix
->
Address
.
lpSockaddr
);
trace
(
"
\t
Address.iSockaddrLength: %d
\n
"
,
prefix
->
Address
.
iSockaddrLength
);
trace
(
"
\t
PrefixLength: %u
\n
"
,
prefix
->
PrefixLength
);
trace
(
"
\n
"
);
trace
(
" prefix %u/%u flags %08x
\n
"
,
prefix
->
Address
.
iSockaddrLength
,
prefix
->
PrefixLength
,
S
(
U
(
*
prefix
)).
Flags
);
prefix
=
prefix
->
Next
;
}
if
(
S
(
U
(
*
aa
)).
Length
<
sizeof
(
IP_ADAPTER_ADDRESSES_LH
))
continue
;
trace
(
"TransmitLinkSpeed: %s
\n
"
,
wine_dbgstr_longlong
(
aa
->
TransmitLinkSpeed
));
trace
(
"ReceiveLinkSpeed: %s
\n
"
,
wine_dbgstr_longlong
(
aa
->
ReceiveLinkSpeed
));
trace
(
"FirstWinsServerAddress:%p
\n
"
,
aa
->
FirstWinsServerAddress
);
trace
(
"FirstGatewayAddress: %p
\n
"
,
aa
->
FirstGatewayAddress
);
trace
(
"Ipv4Metric: %u
\n
"
,
aa
->
Ipv4Metric
);
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
"
);
trace
(
"speed %s/%s metrics %u/%u guid %s type %u/%u
\n
"
,
wine_dbgstr_longlong
(
aa
->
TransmitLinkSpeed
),
wine_dbgstr_longlong
(
aa
->
ReceiveLinkSpeed
),
aa
->
Ipv4Metric
,
aa
->
Ipv6Metric
,
wine_dbgstr_guid
((
GUID
*
)
&
aa
->
NetworkGuid
),
aa
->
ConnectionType
,
aa
->
TunnelType
);
if
(
pConvertInterfaceLuidToGuid
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment