diff options
author | Rahat Mahmood <rahat@google.com> | 2019-08-02 12:51:23 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-08-02 12:52:40 -0700 |
commit | 2906dffcdbd4398361d5d7f718faa4f24fdc3b8e (patch) | |
tree | a4579e1fca9e9dec457329c7b4f4b96b8206bda3 /pkg/tcpip/tcpip.go | |
parent | aaaefdf9cadf033fa281b612315c3227f5ab1c7a (diff) |
Automated rollback of changelist 261191548
PiperOrigin-RevId: 261373749
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 |