mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix MTU advertised by sharedmem to exclude header size.
PiperOrigin-RevId: 430986440
This commit is contained in:
committed by
gVisor bot
parent
510cc2f7fc
commit
f461bb7b64
@@ -298,7 +298,7 @@ func (e *endpoint) IsAttached() bool {
|
||||
// MTU implements stack.LinkEndpoint.MTU. It returns the value initialized
|
||||
// during construction.
|
||||
func (e *endpoint) MTU() uint32 {
|
||||
return e.mtu - e.hdrSize
|
||||
return e.mtu
|
||||
}
|
||||
|
||||
// Capabilities implements stack.LinkEndpoint.Capabilities.
|
||||
|
||||
@@ -184,7 +184,7 @@ func (e *serverEndpoint) IsAttached() bool {
|
||||
// MTU implements stack.LinkEndpoint.MTU. It returns the value initialized
|
||||
// during construction.
|
||||
func (e *serverEndpoint) MTU() uint32 {
|
||||
return e.mtu - e.hdrSize
|
||||
return e.mtu
|
||||
}
|
||||
|
||||
// Capabilities implements stack.LinkEndpoint.Capabilities.
|
||||
|
||||
Reference in New Issue
Block a user