8293842: IPv6-only systems throws UnsupportedOperationException for several socket/TCP options

Co-authored-by: Martin Buchholz <martin@openjdk.org>
Reviewed-by: djelinski, dfuchs
This commit is contained in:
Man Cao 2022-09-15 22:06:18 +00:00
parent bb9aa4eae6
commit 9a40b76ac5
5 changed files with 25 additions and 9 deletions

View file

@ -235,7 +235,7 @@ jint IPv6_supported()
return JNI_TRUE;
}
jint reuseport_supported()
jint reuseport_supported(int ipv6_available)
{
/* SO_REUSEPORT is not supported on Windows */
return JNI_FALSE;