Page MenuHomeFreeBSD

Extend sockstat to display the TCP congestion control
ClosedPublic

Authored by tuexen on Sep 12 2020, 2:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 23 2023, 4:53 PM
Unknown Object (File)
Dec 23 2023, 1:15 AM
Unknown Object (File)
Oct 16 2023, 6:10 PM
Unknown Object (File)
Oct 13 2023, 2:10 PM
Unknown Object (File)
Jun 11 2023, 4:17 AM
Unknown Object (File)
Feb 14 2023, 1:24 AM
Unknown Object (File)
Dec 13 2022, 12:56 AM
Subscribers

Details

Summary

This patch adds the -C option to sockstat, which enables the displaying of the name of the congestion control module used by a TCP connection.

This depends on D26412.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

usr.bin/sockstat/sockstat.c
1150 ↗(On Diff #76946)

Why not structure this right away similar to the above, to allow easy extention if additional columns get added later?

Also, if TCP specific columns are kept at the tail, you could check for IPPROTO_TCP first - or do we have STCP specific columns already? Also, wouldn't SCTP also be able to use different CC's, thinking about it?

Address Richard's comment.

usr.bin/sockstat/sockstat.c
1150 ↗(On Diff #76946)

Code updated to use the same patter as above.

Yes, SCTP has CC modules and I plan to make them supported here in the future, too.

This revision is now accepted and ready to land.Sep 12 2020, 10:06 PM