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
f659ae65
Commit
f659ae65
authored
Jan 18, 2023
by
Santino Mazza
Committed by
Alexandre Julliard
Jan 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Set Ipv4Enabled and Ipv6Enabled flags accordingly.
parent
a331f1e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+2
-0
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+2
-2
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
f659ae65
...
...
@@ -959,12 +959,14 @@ static DWORD unicast_addresses_alloc( IP_ADAPTER_ADDRESSES *aa, ULONG family, UL
{
SOCKADDR_IN
*
in
=
(
SOCKADDR_IN
*
)
addr
->
Address
.
lpSockaddr
;
in
->
sin_addr
=
key4
->
addr
;
aa
->
Ipv4Enabled
=
TRUE
;
}
else
{
SOCKADDR_IN6
*
in6
=
(
SOCKADDR_IN6
*
)
addr
->
Address
.
lpSockaddr
;
in6
->
sin6_addr
=
key6
->
addr
;
in6
->
sin6_scope_id
=
dyn
[
i
].
scope_id
;
aa
->
Ipv6Enabled
=
TRUE
;
}
addr
->
PrefixOrigin
=
rw
[
i
].
prefix_origin
;
addr
->
SuffixOrigin
=
rw
[
i
].
suffix_origin
;
...
...
dlls/iphlpapi/tests/iphlpapi.c
View file @
f659ae65
...
...
@@ -1819,9 +1819,9 @@ static void test_GetAdaptersAddresses(void)
dns_eligible_found
=
TRUE
;
if
(
ua
->
Address
.
lpSockaddr
->
sa_family
==
AF_INET
)
todo_wine
ok
(
aa
->
Ipv4Enabled
==
TRUE
,
"expected Ipv4Enabled flag to be set in interface %ls
\n
"
,
aa
->
FriendlyName
);
ok
(
aa
->
Ipv4Enabled
==
TRUE
,
"expected Ipv4Enabled flag to be set in interface %ls
\n
"
,
aa
->
FriendlyName
);
else
if
(
ua
->
Address
.
lpSockaddr
->
sa_family
==
AF_INET6
)
todo_wine
ok
(
aa
->
Ipv6Enabled
==
TRUE
,
"expected Ipv6Enabled flag to be set in interface %ls
\n
"
,
aa
->
FriendlyName
);
ok
(
aa
->
Ipv6Enabled
==
TRUE
,
"expected Ipv6Enabled flag to be set in interface %ls
\n
"
,
aa
->
FriendlyName
);
ua
=
ua
->
Next
;
}
...
...
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