summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/tcpip.go
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2018-09-04 12:38:31 -0700
committerShentubot <shentubot@google.com>2018-09-04 12:39:47 -0700
commit3794cb6bff094820d78bc3199dc6910af3d194c0 (patch)
tree0a411818ffc54bc18250917b3a22131abe7aa9f0 /pkg/tcpip/tcpip.go
parentc09f9acd7c7a2e85472b1ee47bf26f7c89ded43e (diff)
Expose TCP RTT
PiperOrigin-RevId: 211504634 Change-Id: I9a7bcbbdd40e5036894930f709278725ef477293
Diffstat (limited to 'pkg/tcpip/tcpip.go')
-rw-r--r--pkg/tcpip/tcpip.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/tcpip/tcpip.go b/pkg/tcpip/tcpip.go
index 166d37004..976f0b0d1 100644
--- a/pkg/tcpip/tcpip.go
+++ b/pkg/tcpip/tcpip.go
@@ -430,7 +430,10 @@ type TimestampOption int
// TCPInfoOption is used by GetSockOpt to expose TCP statistics.
//
// TODO: Add and populate stat fields.
-type TCPInfoOption struct{}
+type TCPInfoOption struct {
+ RTT time.Duration
+ RTTVar time.Duration
+}
// Route is a row in the routing table. It specifies through which NIC (and
// gateway) sets of packets should be routed. A row is considered viable if the