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
c44c16cf
Commit
c44c16cf
authored
Oct 11, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Oct 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Honor GAA_FLAG_SKIP_UNICAST.
parent
60354102
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+11
-5
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
c44c16cf
...
...
@@ -719,14 +719,15 @@ static PMIB_IPFORWARDROW findIPv4Gateway(DWORD index,
static
ULONG
adapterAddressesFromIndex
(
ULONG
family
,
ULONG
flags
,
DWORD
index
,
IP_ADAPTER_ADDRESSES
*
aa
,
ULONG
*
size
)
{
ULONG
ret
,
i
,
num_v4addrs
=
0
,
num_v4_gateways
=
0
,
num_v6addrs
=
0
,
total_size
;
ULONG
ret
=
ERROR_SUCCESS
,
i
,
num_v4addrs
=
0
,
num_v4_gateways
=
0
,
num_v6addrs
=
0
,
total_size
;
DWORD
*
v4addrs
=
NULL
;
SOCKET_ADDRESS
*
v6addrs
=
NULL
;
PMIB_IPFORWARDTABLE
routeTable
=
NULL
;
if
(
family
==
WS_AF_INET
)
{
ret
=
v4addressesFromIndex
(
index
,
&
v4addrs
,
&
num_v4addrs
);
if
(
!
(
flags
&
GAA_FLAG_SKIP_UNICAST
))
ret
=
v4addressesFromIndex
(
index
,
&
v4addrs
,
&
num_v4addrs
);
if
(
!
ret
&&
flags
&
GAA_FLAG_INCLUDE_ALL_GATEWAYS
)
{
ret
=
AllocateAndGetIpForwardTableFromStack
(
&
routeTable
,
FALSE
,
...
...
@@ -736,10 +737,14 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, DWORD index,
}
}
else
if
(
family
==
WS_AF_INET6
)
ret
=
v6addressesFromIndex
(
index
,
&
v6addrs
,
&
num_v6addrs
);
{
if
(
!
(
flags
&
GAA_FLAG_SKIP_UNICAST
))
ret
=
v6addressesFromIndex
(
index
,
&
v6addrs
,
&
num_v6addrs
);
}
else
if
(
family
==
WS_AF_UNSPEC
)
{
ret
=
v4addressesFromIndex
(
index
,
&
v4addrs
,
&
num_v4addrs
);
if
(
!
(
flags
&
GAA_FLAG_SKIP_UNICAST
))
ret
=
v4addressesFromIndex
(
index
,
&
v4addrs
,
&
num_v4addrs
);
if
(
!
ret
&&
flags
&
GAA_FLAG_INCLUDE_ALL_GATEWAYS
)
{
ret
=
AllocateAndGetIpForwardTableFromStack
(
&
routeTable
,
FALSE
,
...
...
@@ -747,7 +752,8 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, DWORD index,
if
(
!
ret
)
{
num_v4_gateways
=
count_v4_gateways
(
index
,
routeTable
);
ret
=
v6addressesFromIndex
(
index
,
&
v6addrs
,
&
num_v6addrs
);
if
(
!
(
flags
&
GAA_FLAG_SKIP_UNICAST
))
ret
=
v6addressesFromIndex
(
index
,
&
v6addrs
,
&
num_v6addrs
);
}
}
}
...
...
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