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
89aaf74f
Commit
89aaf74f
authored
Apr 01, 2010
by
Stefan Leichter
Committed by
Alexandre Julliard
Apr 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Partly implement level IPPROTO_IPV6 of getsockopt.
parent
61fe7b3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
1 deletion
+29
-1
socket.c
dlls/ws2_32/socket.c
+29
-1
No files found.
dlls/ws2_32/socket.c
View file @
89aaf74f
...
...
@@ -2317,7 +2317,35 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
return
SOCKET_ERROR
;
case
WS_IPPROTO_IPV6
:
FIXME
(
"IPPROTO_IPV6 unimplemented (optname 0x%08x)
\n
"
,
optname
);
switch
(
optname
)
{
#ifdef IPV6_ADD_MEMBERSHIP
case
WS_IPV6_ADD_MEMBERSHIP
:
#endif
#ifdef IPV6_DROP_MEMBERSHIP
case
WS_IPV6_DROP_MEMBERSHIP
:
#endif
case
WS_IPV6_MULTICAST_IF
:
case
WS_IPV6_MULTICAST_HOPS
:
case
WS_IPV6_MULTICAST_LOOP
:
case
WS_IPV6_UNICAST_HOPS
:
case
WS_IPV6_V6ONLY
:
if
(
(
fd
=
get_sock_fd
(
s
,
0
,
NULL
))
==
-
1
)
return
SOCKET_ERROR
;
convert_sockopt
(
&
level
,
&
optname
);
if
(
getsockopt
(
fd
,
level
,
optname
,
optval
,
(
unsigned
int
*
)
optlen
)
!=
0
)
{
SetLastError
((
errno
==
EBADF
)
?
WSAENOTSOCK
:
wsaErrno
());
ret
=
SOCKET_ERROR
;
}
release_sock_fd
(
s
,
fd
);
return
ret
;
case
WS_IPV6_DONTFRAG
:
FIXME
(
"WS_IPV6_DONTFRAG is always false!
\n
"
);
*
(
BOOL
*
)
optval
=
FALSE
;
return
0
;
}
FIXME
(
"Unknown IPPROTO_IPV6 optname 0x%08x
\n
"
,
optname
);
return
SOCKET_ERROR
;
default:
...
...
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