RFR: 8284890: Support for Do not fragment IP socket options [v8]

Alan Bateman alanb at openjdk.org
Thu Nov 9 14:55:17 UTC 2023


On Wed, 20 Apr 2022 14:30:21 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
>
> Michael McMahon has updated the pull request incrementally with one additional commit since the last revision:
> 
>   test update

src/jdk.net/share/classes/jdk/net/ExtendedSocketOptions.java line 221:

> 219:      * which case, the local network MTU must be observed.
> 220:      */
> 221:     public static final SocketOption<Boolean> IP_DONTFRAGMENT =

Just noticed that we are missing `@since 19`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/8245#discussion_r1388119739


More information about the build-dev mailing list