diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-08-02 20:01:00 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-08-02 20:01:00 +0000 |
commit | a0ddb482614af1a079ef547adae40bc50810f636 (patch) | |
tree | e3960b79606dd7846922775e33860dfd0b181491 /pkg/tcpip/tcpip.go | |
parent | c5d8c1c4c1452f9289fc7d266d8b478c2c32141c (diff) | |
parent | 2906dffcdbd4398361d5d7f718faa4f24fdc3b8e (diff) |
Merge 2906dffc (automated)
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r-- | pkg/tcpip/tcpip.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go index 690c00edb..4208c0303 100644 --- a/pkg/tcpip/tcpip.go +++ b/pkg/tcpip/tcpip.go @@ -476,6 +476,14 @@ type QuickAckOption int // Only supported on Unix sockets. type PasscredOption int +// TCPInfoOption is used by GetSockOpt to expose TCP statistics. +// +// TODO(b/64800844): Add and populate stat fields. +type TCPInfoOption struct { + RTT time.Duration + RTTVar time.Duration +} + // KeepaliveEnabledOption is used by SetSockOpt/GetSockOpt to specify whether // TCP keepalive is enabled for this socket. type KeepaliveEnabledOption int |