diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-23 17:51:50 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-23 17:51:50 +0000 |
commit | ce44e4f40f7c2c2642da14cd9cbf9bee3fc0b6b2 (patch) | |
tree | 8a9c2124c6b86cdd8192b17b5a5dac180d879ed9 /pkg/tcpip/transport/packet | |
parent | addf7ba2386b07677892262caede551b90bedcb2 (diff) | |
parent | 39e9b3bb8a25cdfdbc2203e33c6881a7c2c88766 (diff) |
Merge release-20201019.0-37-g39e9b3bb8 (automated)
Diffstat (limited to 'pkg/tcpip/transport/packet')
-rw-r--r-- | pkg/tcpip/transport/packet/endpoint.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/packet/endpoint.go b/pkg/tcpip/transport/packet/endpoint.go index 072601d2d..31831a6d8 100644 --- a/pkg/tcpip/transport/packet/endpoint.go +++ b/pkg/tcpip/transport/packet/endpoint.go @@ -389,7 +389,12 @@ func (ep *endpoint) GetSockOpt(opt tcpip.GettableSocketOption) *tcpip.Error { // GetSockOptBool implements tcpip.Endpoint.GetSockOptBool. func (*endpoint) GetSockOptBool(opt tcpip.SockOptBool) (bool, *tcpip.Error) { - return false, tcpip.ErrNotSupported + switch opt { + case tcpip.AcceptConnOption: + return false, nil + default: + return false, tcpip.ErrNotSupported + } } // GetSockOptInt implements tcpip.Endpoint.GetSockOptInt. |