MCPcopy Create free account
hub / github.com/google/gvisor / SetTCPSACKEnabled

Method SetTCPSACKEnabled

pkg/sentry/socket/netstack/stack.go:760–763  ·  view source on GitHub ↗

SetTCPSACKEnabled implements inet.Stack.SetTCPSACKEnabled.

(enabled bool)

Source from the content-addressed store, hash-verified

758
759// SetTCPSACKEnabled implements inet.Stack.SetTCPSACKEnabled.
760func (s *Stack) SetTCPSACKEnabled(enabled bool) error {
761 opt := tcpip.TCPSACKEnabled(enabled)
762 return syserr.TranslateNetstackError(s.Stack.SetTransportProtocolOption(tcp.ProtocolNumber, &opt)).ToError()
763}
764
765// TCPRecovery implements inet.Stack.TCPRecovery.
766func (s *Stack) TCPRecovery() (inet.TCPLossRecovery, error) {

Callers

nothing calls this directly

Calls 4

TCPSACKEnabledTypeAlias · 0.92
TranslateNetstackErrorFunction · 0.92
ToErrorMethod · 0.80

Tested by

no test coverage detected