RFR: 8285671: java/nio/channels/etc/PrintSupportedOptions.java and java/nio/channels/DatagramChannel/AfterDisconnect.java are failing [v2]

Daniel Fuchs dfuchs at openjdk.java.net
Wed Apr 27 15:52:52 UTC 2022


On Wed, 27 Apr 2022 14:27:01 GMT, Michael McMahon <michaelm at openjdk.org> wrote:

>> src/jdk.net/macosx/native/libextnet/MacOSXSocketOptions.c line 209:
>> 
>>> 207:         return JNI_FALSE;
>>> 208:     }
>>> 209:     fd = socket(AF_INET6, SOCK_DGRAM, 0);
>> 
>> So if IPv6 is not supported on the machine, won't that result on reporting that IP don't fragment is unsupported? Same question for line 201, but for IPv6 only machines?
>
> I'm not sure you can disable IPv6 completely on mac OS. You can disable it on a per-interface basis. Even then it leaves a link local address available and that code succeeds.
> 
> I was originally concerned that running with -Djava.net.preferIPv4Stack=true might cause problems, but even in that case, the check succeeds because it ignores that settting.

OK - if you're confident that this will work.

-------------

PR: https://git.openjdk.java.net/jdk/pull/8419


More information about the net-dev mailing list