On Wed, 27 Apr 2022 14:10:55 GMT, Daniel Fuchs <dfu...@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

Reply via email to