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
04f78cb5
Commit
04f78cb5
authored
Oct 18, 2021
by
Alex Henrie
Committed by
Alexandre Julliard
Oct 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32/tests: Correct name of IPV6_V6ONLY socket option in messages.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8018f95a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
sock.c
dlls/ws2_32/tests/sock.c
+11
-11
No files found.
dlls/ws2_32/tests/sock.c
View file @
04f78cb5
...
...
@@ -5650,7 +5650,7 @@ static void test_ipv6only(void)
enabled
=
2
;
ret
=
getsockopt
(
v6
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
char
*
)
&
enabled
,
&
len
);
ok
(
!
ret
,
"getsockopt(IPV6_ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
ret
,
"getsockopt(IPV6_
V6
ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
enabled
==
1
,
"expected 1, got %d
\n
"
,
enabled
);
ret
=
bind
(
v6
,
(
struct
sockaddr
*
)
&
sin6
,
sizeof
(
sin6
));
...
...
@@ -5662,26 +5662,26 @@ static void test_ipv6only(void)
todo_wine
{
enabled
=
2
;
ret
=
getsockopt
(
v4
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
char
*
)
&
enabled
,
&
len
);
ok
(
!
ret
,
"getsockopt(IPV6_ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
ret
,
"getsockopt(IPV6_
V6
ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
enabled
==
1
,
"expected 1, got %d
\n
"
,
enabled
);
}
enabled
=
0
;
len
=
sizeof
(
enabled
);
ret
=
setsockopt
(
v4
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
char
*
)
&
enabled
,
len
);
ok
(
!
ret
,
"setsockopt(IPV6_ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
ret
,
"setsockopt(IPV6_
V6
ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
todo_wine
{
enabled
=
2
;
ret
=
getsockopt
(
v4
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
char
*
)
&
enabled
,
&
len
);
ok
(
!
ret
,
"getsockopt(IPV6_ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
ret
,
"getsockopt(IPV6_
V6
ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
enabled
,
"expected 0, got %d
\n
"
,
enabled
);
}
enabled
=
1
;
len
=
sizeof
(
enabled
);
ret
=
setsockopt
(
v4
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
char
*
)
&
enabled
,
len
);
ok
(
!
ret
,
"setsockopt(IPV6_ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
ret
,
"setsockopt(IPV6_
V6
ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
/* bind on IPv4 socket should succeed - IPV6_V6ONLY is enabled by default */
ret
=
bind
(
v4
,
(
struct
sockaddr
*
)
&
sin4
,
sizeof
(
sin4
));
...
...
@@ -5690,26 +5690,26 @@ todo_wine {
todo_wine
{
enabled
=
2
;
ret
=
getsockopt
(
v4
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
char
*
)
&
enabled
,
&
len
);
ok
(
!
ret
,
"getsockopt(IPV6_ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
ret
,
"getsockopt(IPV6_
V6
ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
enabled
==
1
,
"expected 1, got %d
\n
"
,
enabled
);
}
enabled
=
0
;
len
=
sizeof
(
enabled
);
ret
=
setsockopt
(
v4
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
char
*
)
&
enabled
,
len
);
ok
(
ret
,
"setsockopt(IPV6_ONLY) succeeded (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
ret
,
"setsockopt(IPV6_
V6
ONLY) succeeded (LastError: %d)
\n
"
,
WSAGetLastError
());
todo_wine
{
enabled
=
0
;
ret
=
getsockopt
(
v4
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
char
*
)
&
enabled
,
&
len
);
ok
(
!
ret
,
"getsockopt(IPV6_ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
ret
,
"getsockopt(IPV6_
V6
ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
enabled
==
1
,
"expected 1, got %d
\n
"
,
enabled
);
}
enabled
=
1
;
len
=
sizeof
(
enabled
);
ret
=
setsockopt
(
v4
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
char
*
)
&
enabled
,
len
);
ok
(
ret
,
"setsockopt(IPV6_ONLY) succeeded (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
ret
,
"setsockopt(IPV6_
V6
ONLY) succeeded (LastError: %d)
\n
"
,
WSAGetLastError
());
closesocket
(
v4
);
closesocket
(
v6
);
...
...
@@ -5728,7 +5728,7 @@ todo_wine {
enabled
=
2
;
ret
=
getsockopt
(
v6
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
char
*
)
&
enabled
,
&
len
);
ok
(
!
ret
,
"getsockopt(IPV6_ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
ret
,
"getsockopt(IPV6_
V6
ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
enabled
,
"expected 0, got %d
\n
"
,
enabled
);
/*
...
...
@@ -5749,7 +5749,7 @@ todo_wine {
enabled
=
2
;
len
=
sizeof
(
enabled
);
getsockopt
(
v6
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
(
char
*
)
&
enabled
,
&
len
);
ok
(
!
ret
,
"getsockopt(IPV6_ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
ret
,
"getsockopt(IPV6_
V6
ONLY) failed (LastError: %d)
\n
"
,
WSAGetLastError
());
ok
(
!
enabled
,
"IPV6_V6ONLY is enabled after bind
\n
"
);
v4
=
socket
(
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
);
...
...
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