summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-04-17 13:48:20 +0000
committergVisor bot <gvisor-bot@google.com>2020-04-17 13:48:20 +0000
commit629c881535e4b9dbfac077c9f8073bff84869b15 (patch)
treea7f5fe80499d44dbe5d1db37ebd4e39e0a1bf842 /pkg/tcpip/transport/tcp
parent6cb5f4c66f69a8beee5aa2d45221b29d162e38f8 (diff)
parentb4de018a67f5b5cb5ffc782c915107e1402ed833 (diff)
Merge release-20200323.0-174-gb4de018 (automated)
Diffstat (limited to 'pkg/tcpip/transport/tcp')
-rw-r--r--pkg/tcpip/transport/tcp/endpoint.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/pkg/tcpip/transport/tcp/endpoint.go b/pkg/tcpip/transport/tcp/endpoint.go
index 5d0ea9e93..7e8def82d 100644
--- a/pkg/tcpip/transport/tcp/endpoint.go
+++ b/pkg/tcpip/transport/tcp/endpoint.go
@@ -1477,8 +1477,6 @@ func (e *endpoint) SetSockOptBool(opt tcpip.SockOptBool, v bool) *tcpip.Error {
e.LockUser()
e.v6only = v
e.UnlockUser()
- default:
- return tcpip.ErrUnknownProtocolOption
}
return nil
@@ -1592,8 +1590,6 @@ func (e *endpoint) SetSockOptInt(opt tcpip.SockOptInt, v int) *tcpip.Error {
e.ttl = uint8(v)
e.UnlockUser()
- default:
- return tcpip.ErrUnknownProtocolOption
}
return nil
}