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
90c52c01
Commit
90c52c01
authored
Aug 03, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Aug 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Add debug support for IPv6 addresses.
parent
c71853cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
socket.c
dlls/ws2_32/socket.c
+19
-2
No files found.
dlls/ws2_32/socket.c
View file @
90c52c01
...
@@ -170,10 +170,27 @@ union generic_unix_sockaddr
...
@@ -170,10 +170,27 @@ union generic_unix_sockaddr
static
inline
const
char
*
debugstr_sockaddr
(
const
struct
WS_sockaddr
*
a
)
static
inline
const
char
*
debugstr_sockaddr
(
const
struct
WS_sockaddr
*
a
)
{
{
if
(
!
a
)
return
"(nil)"
;
if
(
!
a
)
return
"(nil)"
;
return
wine_dbg_sprintf
(
"{ family %d, address %s, port %d }"
,
switch
(
a
->
sa_family
)
((
const
struct
sockaddr_in
*
)
a
)
->
sin_family
,
{
case
WS_AF_INET
:
return
wine_dbg_sprintf
(
"{ family AF_INET, address %s, port %d }"
,
inet_ntoa
(((
const
struct
sockaddr_in
*
)
a
)
->
sin_addr
),
inet_ntoa
(((
const
struct
sockaddr_in
*
)
a
)
->
sin_addr
),
ntohs
(((
const
struct
sockaddr_in
*
)
a
)
->
sin_port
));
ntohs
(((
const
struct
sockaddr_in
*
)
a
)
->
sin_port
));
case
WS_AF_INET6
:
{
char
buf
[
46
];
const
char
*
p
;
struct
WS_sockaddr_in6
*
sin
=
(
struct
WS_sockaddr_in6
*
)
a
;
p
=
WS_inet_ntop
(
WS_AF_INET6
,
&
sin
->
sin6_addr
,
buf
,
sizeof
(
buf
)
);
if
(
!
p
)
p
=
"(unknown IPv6 address)"
;
return
wine_dbg_sprintf
(
"{ family AF_INET6, address %s, port %d }"
,
p
,
ntohs
(
sin
->
sin6_port
));
}
default:
return
wine_dbg_sprintf
(
"{ family %d }"
,
a
->
sa_family
);
}
}
}
/* HANDLE<->SOCKET conversion (SOCKET is UINT_PTR). */
/* HANDLE<->SOCKET conversion (SOCKET is UINT_PTR). */
...
...
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