mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
noop upon IP_PMTUDISC_INTERFACE and IP_PMTUDISC_OMIT
This is what we did previously, and doing so avoids breaking some users. Fixes #10760. PiperOrigin-RevId: 663358270
This commit is contained in:
committed by
gVisor bot
parent
b508258e39
commit
626010438a
@@ -2625,6 +2625,8 @@ func setSockOptIP(t *kernel.Task, s socket.Socket, ep commonEndpoint, name int,
|
||||
v = int32(tcpip.PMTUDiscoveryDo)
|
||||
case linux.IP_PMTUDISC_PROBE:
|
||||
v = int32(tcpip.PMTUDiscoveryProbe)
|
||||
case linux.IP_PMTUDISC_INTERFACE, linux.IP_PMTUDISC_OMIT:
|
||||
return nil // Noop.
|
||||
default:
|
||||
return syserr.ErrNotSupported
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user