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
6ceb5644
Commit
6ceb5644
authored
Nov 18, 2013
by
Vitaly Lipatov
Committed by
Alexandre Julliard
Nov 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipconfig: Distinguish between IPv4 and IPv6 addresses in normal mode.
parent
89bdb2f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ipconfig.c
programs/ipconfig/ipconfig.c
+5
-1
No files found.
programs/ipconfig/ipconfig.c
View file @
6ceb5644
...
...
@@ -186,8 +186,12 @@ static void print_basic_information(void)
for
(
addr
=
p
->
FirstUnicastAddress
;
addr
;
addr
=
addr
->
Next
)
{
if
(
socket_address_to_string
(
addr_buf
,
sizeof
(
addr_buf
)
/
sizeof
(
WCHAR
),
&
addr
->
Address
))
if
(
addr
->
Address
.
lpSockaddr
->
sa_family
==
AF_INET
&&
socket_address_to_string
(
addr_buf
,
sizeof
(
addr_buf
)
/
sizeof
(
WCHAR
),
&
addr
->
Address
))
print_field
(
STRING_IP_ADDRESS
,
addr_buf
);
else
if
(
addr
->
Address
.
lpSockaddr
->
sa_family
==
AF_INET6
&&
socket_address_to_string
(
addr_buf
,
sizeof
(
addr_buf
)
/
sizeof
(
WCHAR
),
&
addr
->
Address
))
print_field
(
STRING_IP6_ADDRESS
,
addr_buf
);
/* FIXME: Output corresponding subnet mask. */
}
...
...
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