RFR: 8284890: Support for Do not fragment IP socket options
Michael McMahon
michaelm at openjdk.java.net
Fri Apr 15 11:45:44 UTC 2022
On Fri, 15 Apr 2022 09:19:48 GMT, Daniel Fuchs <dfuchs at openjdk.org> 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
More information about the build-dev
mailing list