From 2906dffcdbd4398361d5d7f718faa4f24fdc3b8e Mon Sep 17 00:00:00 2001 From: Rahat Mahmood Date: Fri, 2 Aug 2019 12:51:23 -0700 Subject: Automated rollback of changelist 261191548 PiperOrigin-RevId: 261373749 --- pkg/tcpip/tcpip.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pkg/tcpip/tcpip.go') 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 -- cgit v1.2.3