From 6cfc76798b586a6c33c1ec311cb5f0d82b90ca72 Mon Sep 17 00:00:00 2001 From: Rahat Mahmood Date: Thu, 15 Aug 2019 14:04:44 -0700 Subject: [PATCH] Document source and versioning of the TCPInfo struct. PiperOrigin-RevId: 263637194 --- pkg/abi/linux/socket.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/abi/linux/socket.go b/pkg/abi/linux/socket.go index 6857a20a3..d5b731390 100644 --- a/pkg/abi/linux/socket.go +++ b/pkg/abi/linux/socket.go @@ -292,7 +292,10 @@ const SizeOfLinger = 8 // TCPInfo is a collection of TCP statistics. // -// From uapi/linux/tcp.h. +// From uapi/linux/tcp.h. Newer versions of Linux continue to add new fields to +// the end of this struct or within existing unusued space, so its size grows +// over time. The current iteration is based on linux v4.17. New versions are +// always backwards compatible. type TCPInfo struct { State uint8 CaState uint8