Page MenuHomeFreeBSD

export the cc algorithm by way of netstat
ClosedPublic

Authored by kmacy on Dec 14 2015, 3:45 AM.
Referenced Files
Unknown Object (File)
Fri, Jan 16, 7:34 AM
Unknown Object (File)
Fri, Jan 16, 7:26 AM
Unknown Object (File)
Sat, Jan 10, 6:03 AM
Unknown Object (File)
Mon, Jan 5, 8:30 PM
Unknown Object (File)
Dec 19 2025, 11:39 AM
Unknown Object (File)
Nov 22 2025, 11:16 AM
Unknown Object (File)
Nov 10 2025, 5:18 AM
Unknown Object (File)
Oct 26 2025, 7:19 PM

Details

Reviewers
gnn
ume
Group Reviewers
transport
Summary

allow userland to query the congestion control algorithm in use by a given TCP socket

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kmacy retitled this revision from to export the cc algorithm by way of netstat.
kmacy updated this object.
kmacy edited the test plan for this revision. (Show Details)
kmacy added reviewers: ume, gnn.
kmacy set the repository for this revision to rS FreeBSD src repository - subversion.
kmacy added a project: transport.
kmacy added subscribers: benno, transport.
gnn edited edge metadata.
This revision is now accepted and ready to land.Dec 15 2015, 3:34 PM
usr.bin/netstat/inet.c
484

It seems cc is shown when istcp is on and Tflag is on. However, the title is shown when Tflag is on. Is it intentional?

OBE. This was done a different way in

commit 0e5e35e32239e0aa67726b6ff6fcaa86a79aff56
Author: Richard Scheffenegger <rscheff@FreeBSD.org>
Date:   Fri Oct 9 10:07:41 2020 +0000

  Extend netstat to display TCP stack and detailed congestion state

  Adding 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.

  Reviewed by:    tuexen
  MFC after:      2 weeks
  Sponsored by:   NetApp, Inc.
  Differential Revision:  https://reviews.freebsd.org/D26518

Notes:
  svn path=/head/; revision=366566