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
8d3318a8
Commit
8d3318a8
authored
Oct 11, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Oct 12, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipconfig: Specify GAA_FLAG_INCLUDE_ALL_GATEWAYS when calling GetAdaptersAddresses.
parent
75f05739
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
ipconfig.c
programs/ipconfig/ipconfig.c
+8
-4
No files found.
programs/ipconfig/ipconfig.c
View file @
8d3318a8
...
...
@@ -153,13 +153,15 @@ static void print_basic_information(void)
IP_ADAPTER_ADDRESSES
*
adapters
;
ULONG
out
=
0
;
if
(
GetAdaptersAddresses
(
AF_UNSPEC
,
0
,
NULL
,
NULL
,
&
out
)
==
ERROR_BUFFER_OVERFLOW
)
if
(
GetAdaptersAddresses
(
AF_UNSPEC
,
GAA_FLAG_INCLUDE_ALL_GATEWAYS
,
NULL
,
NULL
,
&
out
)
==
ERROR_BUFFER_OVERFLOW
)
{
adapters
=
HeapAlloc
(
GetProcessHeap
(),
0
,
out
);
if
(
!
adapters
)
exit
(
1
);
if
(
GetAdaptersAddresses
(
AF_UNSPEC
,
0
,
NULL
,
adapters
,
&
out
)
==
ERROR_SUCCESS
)
if
(
GetAdaptersAddresses
(
AF_UNSPEC
,
GAA_FLAG_INCLUDE_ALL_GATEWAYS
,
NULL
,
adapters
,
&
out
)
==
ERROR_SUCCESS
)
{
IP_ADAPTER_ADDRESSES
*
p
;
...
...
@@ -303,13 +305,15 @@ static void print_full_information(void)
HeapFree
(
GetProcessHeap
(),
0
,
info
);
}
if
(
GetAdaptersAddresses
(
AF_UNSPEC
,
0
,
NULL
,
NULL
,
&
out
)
==
ERROR_BUFFER_OVERFLOW
)
if
(
GetAdaptersAddresses
(
AF_UNSPEC
,
GAA_FLAG_INCLUDE_ALL_GATEWAYS
,
NULL
,
NULL
,
&
out
)
==
ERROR_BUFFER_OVERFLOW
)
{
adapters
=
HeapAlloc
(
GetProcessHeap
(),
0
,
out
);
if
(
!
adapters
)
exit
(
1
);
if
(
GetAdaptersAddresses
(
AF_UNSPEC
,
0
,
NULL
,
adapters
,
&
out
)
==
ERROR_SUCCESS
)
if
(
GetAdaptersAddresses
(
AF_UNSPEC
,
GAA_FLAG_INCLUDE_ALL_GATEWAYS
,
NULL
,
adapters
,
&
out
)
==
ERROR_SUCCESS
)
{
IP_ADAPTER_ADDRESSES
*
p
;
...
...
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