SetTCPSACKEnabled implements inet.Stack.SetTCPSACKEnabled.
(enabled bool)
| 758 | |
| 759 | // SetTCPSACKEnabled implements inet.Stack.SetTCPSACKEnabled. |
| 760 | func (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. |
| 766 | func (s *Stack) TCPRecovery() (inet.TCPLossRecovery, error) { |
nothing calls this directly
no test coverage detected