diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-08-25 17:07:08 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-25 17:07:08 +0000 |
commit | 993cd0c9e6b58c8c28ccb25a9f445e50c7d4dfaa (patch) | |
tree | 4fcbd8eee097d7c5fc7a13447bc89f640ba5ecf3 /pkg/tcpip/tcpip.go | |
parent | f839b715ebad539a0d4604caa62610624ff4d166 (diff) | |
parent | b26f7503b545e106ea0934d2153aed54ee4374d3 (diff) |
Merge release-20200818.0-42-gb26f7503b (automated)
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r-- | pkg/tcpip/tcpip.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go index 07c85ce59..290c4e138 100644 --- a/pkg/tcpip/tcpip.go +++ b/pkg/tcpip/tcpip.go @@ -978,6 +978,15 @@ const ( TCPTimeWaitReuseLoopbackOnly ) +// LingerOption is used by SetSockOpt/GetSockOpt to set/get the +// duration for which a socket lingers before returning from Close. +// +// +stateify savable +type LingerOption struct { + Enabled bool + Timeout time.Duration +} + // IPPacketInfo is the message structure for IP_PKTINFO. // // +stateify savable |