]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r366566;r366567: Extend netstat to display TCP stack and detailed congestion...
authorRichard Scheffenegger <rscheff@FreeBSD.org>
Sat, 24 Oct 2020 17:47:43 +0000 (17:47 +0000)
committerRichard Scheffenegger <rscheff@FreeBSD.org>
Sat, 24 Oct 2020 17:47:43 +0000 (17:47 +0000)
commit0cfac1bab677f62c894d90ea7f2e484546d72036
treed52b1d30de9671cc4bf7a06079ef066394494dca
parent9b82436b217a56b6351658852066b6407bb10a30
MFC r366566;r366567: Extend netstat to display TCP stack and detailed congestion state

Upstreaming the "-c" option used to show detailed per-connection
congestion control state for TCP sessions.

This is one summary patch, which adds the relevant variables into
xtcpcb. As previous "spare" space is used, these changes are ABI
compatible (an older version of netstat will simply not show
the newly available data from newer kernels, and a newer version
of netstat will only show zeroed data querying older kernels.

Reviewed by: tuexen
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D26518
sys/netinet/tcp_subr.c
sys/netinet/tcp_var.h
usr.bin/netstat/inet.c
usr.bin/netstat/main.c
usr.bin/netstat/netstat.1
usr.bin/netstat/netstat.h