diff options
author | Rahat Mahmood <rahat@google.com> | 2019-08-15 14:04:44 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-08-15 14:05:59 -0700 |
commit | 6cfc76798b586a6c33c1ec311cb5f0d82b90ca72 (patch) | |
tree | f8d3d1b9b46a3fa69fcaa97302ecca176550b6d1 /pkg | |
parent | fe74bba2bd8b3bed84f456313275500fca90f441 (diff) |
Document source and versioning of the TCPInfo struct.
PiperOrigin-RevId: 263637194
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/abi/linux/socket.go | 5 |
1 files changed, 4 insertions, 1 deletions
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 |