From 99988e45ed651f64e16e2f2663b06b4a1eee50d4 Mon Sep 17 00:00:00 2001 From: Nayana Bidari Date: Wed, 27 Jan 2021 16:11:49 -0800 Subject: Add support for more fields in netstack for TCP_INFO This CL adds support for the following fields: - RTT, RTTVar, RTO - send congestion window (sndCwnd) and send slow start threshold (sndSsthresh) - congestion control state(CaState) - ReorderSeen PiperOrigin-RevId: 354195361 --- pkg/abi/linux/tcp.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkg/abi/linux/tcp.go') diff --git a/pkg/abi/linux/tcp.go b/pkg/abi/linux/tcp.go index 2a8d4708b..1a3c0916f 100644 --- a/pkg/abi/linux/tcp.go +++ b/pkg/abi/linux/tcp.go @@ -59,3 +59,12 @@ const ( MAX_TCP_KEEPINTVL = 32767 MAX_TCP_KEEPCNT = 127 ) + +// Congestion control states from include/uapi/linux/tcp.h. +const ( + TCP_CA_Open = 0 + TCP_CA_Disorder = 1 + TCP_CA_CWR = 2 + TCP_CA_Recovery = 3 + TCP_CA_Loss = 4 +) -- cgit v1.2.3