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

Method SetTransportProtocolOption

pkg/tcpip/stack/stack.go:511–517  ·  view source on GitHub ↗

SetTransportProtocolOption allows configuring individual protocol level options. This method returns an error if the protocol is not supported or option is not supported by the protocol implementation or the provided value is incorrect.

(transport tcpip.TransportProtocolNumber, option tcpip.SettableTransportProtocolOption)

Source from the content-addressed store, hash-verified

509// option is not supported by the protocol implementation or the provided value
510// is incorrect.
511func (s *Stack) SetTransportProtocolOption(transport tcpip.TransportProtocolNumber, option tcpip.SettableTransportProtocolOption) tcpip.Error {
512 transProtoState, ok := s.transportProtocols[transport]
513 if !ok {
514 return &tcpip.ErrUnknownProtocol{}
515 }
516 return transProtoState.proto.SetOption(option)
517}
518
519// TransportProtocolOption allows retrieving individual protocol level option
520// values. This method returns an error if the protocol is not supported or

Callers 15

SetTCPSendBufferSizeMethod · 0.80
SetTCPSACKEnabledMethod · 0.80
SetTCPRecoveryMethod · 0.80
SetStackSACKPermittedFunction · 0.80
SetStackTCPRecoveryFunction · 0.80
EnableCUBICFunction · 0.80
timeStampEnabledAcceptFunction · 0.80
timeStampDisabledAcceptFunction · 0.80
testV4ListenCloseFunction · 0.80
TestSackPermittedAcceptFunction · 0.80
TestSackDisabledAcceptFunction · 0.80

Calls 1

SetOptionMethod · 0.65