Page MenuHomeFreeBSD

Extend netstat to display the TCP congestion control
ClosedPublic

Authored by tuexen on Sep 12 2020, 2:43 PM.

Details

Summary

This patch adds the -c option to netstat, 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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Perhaps it is better to match sockstat (D26413) and make the option -C instead of -c.

Perhaps it is better to match sockstat (D26413) and make the option -C instead of -c.

Done, but the options are already not in sync:

  • -p in netstat and -P in sockstat for selecting the protocol.
  • -a in netstat and -l in sockstat for showing listening sockets.

I wanted to suggest using -C (for reasons, instead of -c), but seeing this is already addressed...

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