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

Michael McMahon michaelm at openjdk.java.net
Wed Apr 27 14:31:59 UTC 2022


On Wed, 27 Apr 2022 14:10:55 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Michael McMahon has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   updated test
>
> 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.

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

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


More information about the net-dev mailing list