8284890: Support for Do not fragment IP socket options

Reviewed-by: erikj, ihse, dfuchs
This commit is contained in:
Michael McMahon 2022-04-26 13:49:58 +00:00
parent a7b5157375
commit 67755edd6f
11 changed files with 498 additions and 3 deletions

View file

@ -108,7 +108,8 @@ public abstract class ExtendedSocketOptions {
}
private static boolean isStreamOption(SocketOption<?> option, boolean server) {
if (option.name().startsWith("UDP_") || isUnixDomainOption(option)) {
if (option.name().startsWith("UDP_") || isUnixDomainOption(option)
|| option.name().equals("IP_DONTFRAGMENT")) {
return false;
} else {
return true;