summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/tcpip.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-01-30 00:06:06 +0000
committergVisor bot <gvisor-bot@google.com>2020-01-30 00:06:06 +0000
commit08f51fce5ec3e2ad32fa51ab5c0e5c8b01a8fba2 (patch)
tree5b0bddbed3ce8679fdcfe61b6839bbc8ff4e294c /pkg/tcpip/tcpip.go
parent69ab6277c5d906f1677578ad9248819ed183e3ba (diff)
parent51b783505b1ec164b02b48a0fd234509fba01a73 (diff)
Merge release-20200127.0-31-g51b7835 (automated)
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r--pkg/tcpip/tcpip.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go
index 59c9b3fb0..0fa141d58 100644
--- a/pkg/tcpip/tcpip.go
+++ b/pkg/tcpip/tcpip.go
@@ -626,6 +626,12 @@ type TCPLingerTimeoutOption time.Duration
// before being marked closed.
type TCPTimeWaitTimeoutOption time.Duration
+// TCPDeferAcceptOption is used by SetSockOpt/GetSockOpt to allow a
+// accept to return a completed connection only when there is data to be
+// read. This usually means the listening socket will drop the final ACK
+// for a handshake till the specified timeout until a segment with data arrives.
+type TCPDeferAcceptOption time.Duration
+
// MulticastTTLOption is used by SetSockOpt/GetSockOpt to control the default
// TTL value for multicast messages. The default is 1.
type MulticastTTLOption uint8