On Wed, 27 Apr 2022 14:27:01 GMT, Michael McMahon <micha...@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

Reply via email to