changeset 12078:ce0d190806f2

Disable forcing ipv4 to ipv6 address mapping on using the IPV6_V6ONLY socket option on OpenBSD. OpenBSD has ipv4 to ipv6 address mapping permanently disabled for security reasons.
author Kurt Miller <kurt@intricatesoftware.com>
date Thu, 23 Feb 2017 08:54:06 -0500
parents 53466b795eb3
children 4024be449b49
files src/solaris/native/java/net/PlainSocketImpl.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/java/net/PlainSocketImpl.c	Sat Jan 28 19:08:22 2017 -0800
+++ b/src/solaris/native/java/net/PlainSocketImpl.c	Thu Feb 23 08:54:06 2017 -0500
@@ -212,6 +212,7 @@
     }
 
 #ifdef AF_INET6
+#ifndef __OpenBSD__
     /* Disable IPV6_V6ONLY to ensure dual-socket support */
     if (domain == AF_INET6) {
         int arg = 0;
@@ -222,6 +223,7 @@
             return;
         }
     }
+#endif /* ! __OpenBSD__ */
 #endif /* AF_INET6 */
 
     /*