< prev index next >

src/java.base/unix/native/libnet/net_util_md.c

Print this page

        

*** 278,293 **** return (*env)->GetFieldID(env, cls, "fd", "I"); } jint IPv4_supported() { - int fd = socket(AF_INET, SOCK_STREAM, 0) ; - if (fd < 0) { return JNI_FALSE; - } - close(fd); - return JNI_TRUE; } #if defined(DONT_ENABLE_IPV6) jint IPv6_supported() { --- 278,288 ----
< prev index next >