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
2856794e
Commit
2856794e
authored
Aug 12, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Aug 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Implement ws_sockaddr_ws2u for AF_IRDA.
parent
64346620
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
socket.c
dlls/ws2_32/socket.c
+32
-0
No files found.
dlls/ws2_32/socket.c
View file @
2856794e
...
...
@@ -144,6 +144,7 @@
#include "ws2spi.h"
#include "wsipx.h"
#include "mstcpip.h"
#include "af_irda.h"
#include "winnt.h"
#include "iphlpapi.h"
#include "wine/server.h"
...
...
@@ -951,6 +952,32 @@ static unsigned int ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, int wsadd
memcpy
(
&
uin
->
sin_addr
,
&
win
->
sin_addr
,
4
);
/* 4 bytes = 32 address bits */
break
;
}
#ifdef HAVE_IRDA
case
WS_AF_IRDA
:
{
struct
sockaddr_irda
*
uin
=
(
struct
sockaddr_irda
*
)
uaddr
;
const
SOCKADDR_IRDA
*
win
=
(
const
SOCKADDR_IRDA
*
)
wsaddr
;
if
(
wsaddrlen
<
sizeof
(
SOCKADDR_IRDA
))
return
0
;
uaddrlen
=
sizeof
(
struct
sockaddr_irda
);
memset
(
uaddr
,
0
,
uaddrlen
);
uin
->
sir_family
=
AF_IRDA
;
if
(
!
strncmp
(
win
->
irdaServiceName
,
"LSAP-SEL"
,
strlen
(
"LSAP-SEL"
)
))
{
unsigned
int
lsap_sel
;
sscanf
(
win
->
irdaServiceName
,
"LSAP-SEL%u"
,
&
lsap_sel
);
uin
->
sir_lsap_sel
=
lsap_sel
;
}
else
{
uin
->
sir_lsap_sel
=
LSAP_ANY
;
memcpy
(
uin
->
sir_name
,
win
->
irdaServiceName
,
25
);
}
memcpy
(
&
uin
->
sir_addr
,
win
->
irdaDeviceID
,
sizeof
(
uin
->
sir_addr
)
);
break
;
}
#endif
case
WS_AF_UNSPEC
:
{
/* Try to determine the needed space by the passed windows sockaddr space */
switch
(
wsaddrlen
)
{
...
...
@@ -963,6 +990,11 @@ static unsigned int ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, int wsadd
uaddrlen
=
sizeof
(
struct
sockaddr_ipx
);
break
;
#endif
#ifdef HAVE_IRDA
case
sizeof
(
SOCKADDR_IRDA
):
uaddrlen
=
sizeof
(
struct
sockaddr_irda
);
break
;
#endif
case
sizeof
(
struct
WS_sockaddr_in6
):
case
sizeof
(
struct
WS_sockaddr_in6_old
):
uaddrlen
=
sizeof
(
struct
sockaddr_in6
);
...
...
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