summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-11-12 22:07:56 +0000
committergVisor bot <gvisor-bot@google.com>2019-11-12 22:07:56 +0000
commit9644444fd012c2f61a4b6bafc96d80136ab0bb3f (patch)
treefe1e2ed8b41b28e71772486c8dd72124e141cc8c /pkg
parentfd8439d55f07c895e78ab8789bdd2012e585c2e7 (diff)
parent57a2a5ea3359e0879f5e4cc40fdb9ad973c689a8 (diff)
Merge release-20190806.1-396-g57a2a5e (automated)
Diffstat (limited to 'pkg')
-rw-r--r--pkg/tcpip/transport/udp/endpoint.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/udp/endpoint.go b/pkg/tcpip/transport/udp/endpoint.go
index 5270f24df..dda7af910 100644
--- a/pkg/tcpip/transport/udp/endpoint.go
+++ b/pkg/tcpip/transport/udp/endpoint.go
@@ -732,6 +732,10 @@ func (e *endpoint) GetSockOpt(opt interface{}) *tcpip.Error {
*o = tcpip.MulticastLoopOption(v)
return nil
+ case *tcpip.ReuseAddressOption:
+ *o = 0
+ return nil
+
case *tcpip.ReusePortOption:
e.mu.RLock()
v := e.reusePort