summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/raw
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-07-11 13:25:17 +0000
committergVisor bot <gvisor-bot@google.com>2020-07-11 13:25:17 +0000
commit7f634efbfa8ab38b63631bf259a87c5bc7c04bed (patch)
tree81fd34bcc1f69a3020c6a2e40104dff23271114f /pkg/tcpip/transport/raw
parent7c2f78ead662934ac0e92d4a3addaec7db6e3cbd (diff)
parent216dcebc066c82907b0de790a77a3deb6a734805 (diff)
Merge release-20200622.1-90-g216dcebc0 (automated)
Diffstat (limited to 'pkg/tcpip/transport/raw')
-rw-r--r--pkg/tcpip/transport/raw/endpoint.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/raw/endpoint.go b/pkg/tcpip/transport/raw/endpoint.go
index 5b6e7d102..c2e9fd29f 100644
--- a/pkg/tcpip/transport/raw/endpoint.go
+++ b/pkg/tcpip/transport/raw/endpoint.go
@@ -506,7 +506,13 @@ func (e *endpoint) Readiness(mask waiter.EventMask) waiter.EventMask {
// SetSockOpt implements tcpip.Endpoint.SetSockOpt.
func (e *endpoint) SetSockOpt(opt interface{}) *tcpip.Error {
- return tcpip.ErrUnknownProtocolOption
+ switch opt.(type) {
+ case tcpip.SocketDetachFilterOption:
+ return nil
+
+ default:
+ return tcpip.ErrUnknownProtocolOption
+ }
}
// SetSockOptBool implements tcpip.Endpoint.SetSockOptBool.