equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
91 * Return true if IPv6 is configured |
91 * Return true if IPv6 is configured |
92 */ |
92 */ |
93 return ipv6_available() ? JNI_TRUE : JNI_FALSE; |
93 return ipv6_available() ? JNI_TRUE : JNI_FALSE; |
94 } |
94 } |
95 |
95 |
|
96 JNIEXPORT jboolean JNICALL |
|
97 Java_sun_nio_ch_Net_isReusePortAvailable0(JNIEnv* env, jclass c1) |
|
98 { |
|
99 // SO_REUSEPORT is not supported on Windows |
|
100 return JNI_FALSE; |
|
101 } |
|
102 |
96 JNIEXPORT jint JNICALL |
103 JNIEXPORT jint JNICALL |
97 Java_sun_nio_ch_Net_isExclusiveBindAvailable(JNIEnv *env, jclass clazz) { |
104 Java_sun_nio_ch_Net_isExclusiveBindAvailable(JNIEnv *env, jclass clazz) { |
98 return 1; |
105 return 1; |
99 } |
106 } |
100 |
107 |