diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-04-17 13:48:20 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-17 13:48:20 +0000 |
commit | 629c881535e4b9dbfac077c9f8073bff84869b15 (patch) | |
tree | a7f5fe80499d44dbe5d1db37ebd4e39e0a1bf842 /pkg/tcpip/transport/icmp | |
parent | 6cb5f4c66f69a8beee5aa2d45221b29d162e38f8 (diff) | |
parent | b4de018a67f5b5cb5ffc782c915107e1402ed833 (diff) |
Merge release-20200323.0-174-gb4de018 (automated)
Diffstat (limited to 'pkg/tcpip/transport/icmp')
-rw-r--r-- | pkg/tcpip/transport/icmp/endpoint.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/tcpip/transport/icmp/endpoint.go b/pkg/tcpip/transport/icmp/endpoint.go index 3a133eef9..feef8dca0 100644 --- a/pkg/tcpip/transport/icmp/endpoint.go +++ b/pkg/tcpip/transport/icmp/endpoint.go @@ -353,7 +353,7 @@ func (e *endpoint) SetSockOpt(opt interface{}) *tcpip.Error { // SetSockOptBool sets a socket option. Currently not supported. func (e *endpoint) SetSockOptBool(opt tcpip.SockOptBool, v bool) *tcpip.Error { - return tcpip.ErrUnknownProtocolOption + return nil } // SetSockOptInt sets a socket option. Currently not supported. @@ -364,8 +364,6 @@ func (e *endpoint) SetSockOptInt(opt tcpip.SockOptInt, v int) *tcpip.Error { e.ttl = uint8(v) e.mu.Unlock() - default: - return tcpip.ErrUnknownProtocolOption } return nil } |