On Fri, 15 Apr 2022 09:19:48 GMT, Daniel Fuchs <[email protected]> wrote:
>> Hi,
>>
>> Could I get the following PR review please? It adds a new JDK specific
>> extended socket option
>> called IP_DONTFRAGMENT, which disables IP packet fragmentation in both IPv4
>> and IPv6
>> UDP sockets (NIO DatagramChannels). For IPv4 in particular, it sets the DF
>> (Dont Fragment) bit
>> in the IP header. There is no equivalent in the IPv6 packet header as
>> fragmentation is implemented
>> exclusively by the sending and receiving nodes.
>>
>> Thanks,
>> Michael
>
> test/jdk/jdk/net/ExtendedSocketOption/DontFragmentTest.java line 40:
>
>> 38:
>> 39: public class DontFragmentTest {
>> 40:
>
> Should we have a similar test for DatagramSocket / MulticastSocket /
> DatagramChannel.socket() ?
Good idea
-------------
PR: https://git.openjdk.java.net/jdk/pull/8245