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
658c2b5f
Commit
658c2b5f
authored
Dec 27, 2013
by
Bruno Jesus
Committed by
Alexandre Julliard
Dec 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Normalize IPX protocol names using the WS prefix.
parent
d030a6c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
socket.c
dlls/ws2_32/socket.c
+10
-10
wsipx.h
include/wsipx.h
+6
-0
No files found.
dlls/ws2_32/socket.c
View file @
658c2b5f
...
...
@@ -195,9 +195,9 @@ static const INT valid_protocols[] =
{
WS_IPPROTO_TCP
,
WS_IPPROTO_UDP
,
NSPROTO_IPX
,
NSPROTO_SPX
,
NSPROTO_SPXII
,
WS_
NSPROTO_IPX
,
WS_
NSPROTO_SPX
,
WS_
NSPROTO_SPXII
,
0
};
...
...
@@ -1641,7 +1641,7 @@ static BOOL WS_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
strcpyW
(
info
->
szProtocol
,
NameUdpW
);
break
;
case
NSPROTO_IPX
:
case
WS_
NSPROTO_IPX
:
info
->
dwServiceFlags1
=
XP1_PARTIAL_MESSAGE
|
XP1_SUPPORT_BROADCAST
|
XP1_SUPPORT_MULTIPOINT
|
XP1_MESSAGE_ORIENTED
|
XP1_CONNECTIONLESS
;
...
...
@@ -1659,7 +1659,7 @@ static BOOL WS_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
strcpyW
(
info
->
szProtocol
,
NameIpxW
);
break
;
case
NSPROTO_SPX
:
case
WS_
NSPROTO_SPX
:
info
->
dwServiceFlags1
=
XP1_IFS_HANDLES
|
XP1_PSEUDO_STREAM
|
XP1_MESSAGE_ORIENTED
|
XP1_GUARANTEED_ORDER
|
XP1_GUARANTEED_DELIVERY
;
...
...
@@ -1676,7 +1676,7 @@ static BOOL WS_EnterSingleProtocolW( INT protocol, WSAPROTOCOL_INFOW* info )
strcpyW
(
info
->
szProtocol
,
NameSpxW
);
break
;
case
NSPROTO_SPXII
:
case
WS_
NSPROTO_SPXII
:
info
->
dwServiceFlags1
=
XP1_IFS_HANDLES
|
XP1_GRACEFUL_CLOSE
|
XP1_PSEUDO_STREAM
|
XP1_MESSAGE_ORIENTED
|
XP1_GUARANTEED_ORDER
|
XP1_GUARANTEED_DELIVERY
;
...
...
@@ -3207,7 +3207,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
}
/* end switch(optname) */
}
/* end case WS_SOL_SOCKET */
#ifdef HAS_IPX
case
NSPROTO_IPX
:
case
WS_
NSPROTO_IPX
:
{
struct
WS_sockaddr_ipx
addr
;
IPX_ADDRESS_DATA
*
data
;
...
...
@@ -3269,7 +3269,7 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
FIXME
(
"IPX optname:%x
\n
"
,
optname
);
return
SOCKET_ERROR
;
}
/* end switch(optname) */
}
/* end case NSPROTO_IPX */
}
/* end case
WS_
NSPROTO_IPX */
#endif
#ifdef HAS_IRDA
...
...
@@ -4752,7 +4752,7 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
break
;
/* case WS_SOL_SOCKET */
#ifdef HAS_IPX
case
NSPROTO_IPX
:
case
WS_
NSPROTO_IPX
:
switch
(
optname
)
{
case
IPX_PTYPE
:
...
...
@@ -4789,7 +4789,7 @@ int WINAPI WS_setsockopt(SOCKET s, int level, int optname,
FIXME
(
"opt_name:%x
\n
"
,
optname
);
return
SOCKET_ERROR
;
}
break
;
/* case NSPROTO_IPX */
break
;
/* case
WS_
NSPROTO_IPX */
#endif
/* Levels WS_IPPROTO_TCP and WS_IPPROTO_IP convert directly */
...
...
include/wsipx.h
View file @
658c2b5f
...
...
@@ -36,9 +36,15 @@ typedef struct WS_sockaddr_ipx
/*
* constants
*/
#ifndef USE_WS_PREFIX
#define NSPROTO_IPX 1000
#define NSPROTO_SPX 1256
#define NSPROTO_SPXII 1257
#else
#define WS_NSPROTO_IPX 1000
#define WS_NSPROTO_SPX 1256
#define WS_NSPROTO_SPXII 1257
#endif
#undef WS
#endif
/* _WINE_WSIPX_ */
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