RFR: 8284890: Support for Do not fragment IP socket options

Daniel Fuchs dfuchs at openjdk.java.net
Fri Apr 15 09:23:39 UTC 2022


On Thu, 14 Apr 2022 16:04:22 GMT, Michael McMahon <michaelm 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() ?

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

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



More information about the build-dev mailing list