Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
e8ceab53
Commit
e8ceab53
authored
Mar 22, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Mar 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi/tests: Trace network prefixes in the test for GetAdaptersAddresses.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f8d47a66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+14
-1
No files found.
dlls/iphlpapi/tests/iphlpapi.c
View file @
e8ceab53
...
...
@@ -1379,13 +1379,14 @@ static void test_GetAdaptersAddresses(void)
size
*=
2
;
osize
=
size
;
ptr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
osize
);
ret
=
pGetAdaptersAddresses
(
AF_UNSPEC
,
0
,
NULL
,
ptr
,
&
osize
);
ret
=
pGetAdaptersAddresses
(
AF_UNSPEC
,
GAA_FLAG_INCLUDE_PREFIX
,
NULL
,
ptr
,
&
osize
);
ok
(
!
ret
,
"expected ERROR_SUCCESS got %u
\n
"
,
ret
);
ok
(
osize
==
size
,
"expected %d, got %d
\n
"
,
size
,
osize
);
for
(
aa
=
ptr
;
!
ret
&&
aa
;
aa
=
aa
->
Next
)
{
char
temp
[
128
];
IP_ADAPTER_PREFIX
*
prefix
;
ok
(
S
(
U
(
*
aa
)).
Length
==
sizeof
(
IP_ADAPTER_ADDRESSES_LH
)
||
S
(
U
(
*
aa
)).
Length
==
sizeof
(
IP_ADAPTER_ADDRESSES_XP
),
...
...
@@ -1452,6 +1453,18 @@ static void test_GetAdaptersAddresses(void)
sprintf
(
temp
+
strlen
(
temp
),
"%d "
,
aa
->
ZoneIndices
[
i
]);
trace
(
"ZoneIndices: %s
\n
"
,
temp
);
trace
(
"FirstPrefix: %p
\n
"
,
aa
->
FirstPrefix
);
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
"
);
prefix
=
prefix
->
Next
;
}
if
(
S
(
U
(
*
aa
)).
Length
<
sizeof
(
IP_ADAPTER_ADDRESSES_LH
))
continue
;
trace
(
"TransmitLinkSpeed: %s
\n
"
,
debugstr_longlong
(
aa
->
TransmitLinkSpeed
));
...
...
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