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
30a27f0b
Commit
30a27f0b
authored
Mar 13, 2017
by
Pierre Schweitzer
Committed by
Alexandre Julliard
Mar 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Flags in IP_ADAPTER_ADDRESSES_LH can be used as a bit field.
Signed-off-by:
Pierre Schweitzer
<
pierre@reactos.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8c03b845
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+2
-2
iptypes.h
include/iptypes.h
+15
-1
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
30a27f0b
...
...
@@ -1067,7 +1067,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, IF_INDEX index
{
IP_ADAPTER_UNICAST_ADDRESS
*
ua
;
struct
WS_sockaddr_in
*
sa
;
aa
->
Flags
|=
IP_ADAPTER_IPV4_ENABLED
;
aa
->
u1
.
s1
.
Ipv4Enabled
=
TRUE
;
ua
=
aa
->
FirstUnicastAddress
=
(
IP_ADAPTER_UNICAST_ADDRESS
*
)
ptr
;
for
(
i
=
0
;
i
<
num_v4addrs
;
i
++
)
{
...
...
@@ -1101,7 +1101,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, IF_INDEX index
IP_ADAPTER_UNICAST_ADDRESS
*
ua
;
struct
WS_sockaddr_in6
*
sa
;
aa
->
Flags
|=
IP_ADAPTER_IPV6_ENABLED
;
aa
->
u1
.
s1
.
Ipv6Enabled
=
TRUE
;
if
(
aa
->
FirstUnicastAddress
)
{
for
(
ua
=
aa
->
FirstUnicastAddress
;
ua
->
Next
;
ua
=
ua
->
Next
)
...
...
include/iptypes.h
View file @
30a27f0b
...
...
@@ -244,7 +244,21 @@ typedef struct _IP_ADAPTER_ADDRESSES_LH {
PWCHAR
FriendlyName
;
BYTE
PhysicalAddress
[
MAX_ADAPTER_ADDRESS_LENGTH
];
DWORD
PhysicalAddressLength
;
DWORD
Flags
;
union
{
DWORD
Flags
;
struct
{
DWORD
DdnsEnabled
:
1
;
DWORD
RegisterAdapterSuffix
:
1
;
DWORD
Dhcpv4Enabled
:
1
;
DWORD
ReceiveOnly
:
1
;
DWORD
NoMulticast
:
1
;
DWORD
Ipv6OtherStatefulConfig
:
1
;
DWORD
NetbiosOverTcpipEnabled
:
1
;
DWORD
Ipv4Enabled
:
1
;
DWORD
Ipv6Enabled
:
1
;
DWORD
Ipv6ManagedAddressConfigurationSupported
:
1
;
}
DUMMYSTRUCTNAME1
;
}
DUMMYUNIONNAME1
;
DWORD
Mtu
;
DWORD
IfType
;
IF_OPER_STATUS
OperStatus
;
...
...
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