tcpsso: add example to man page

Describe how to switch the TCP stack on all endpoints in the
LISTEN state.

Reviewed by:		concussious.bugzilla_runbox.com
MFC after:		1 week
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D46218
This commit is contained in:
Michael Tuexen 2024-08-03 19:59:06 +02:00
parent 6502c60c22
commit 5c44e69d2f

View File

@ -24,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.Dd January 14, 2024 .Dd August 3, 2024
.Dt TCPSSO 8 .Dt TCPSSO 8
.Os .Os
.Sh NAME .Sh NAME
@ -229,11 +229,17 @@ Then, use the following command to enable Black Box Logging on it:
# tcpsso -i 435 TCP_LOG 4 # tcpsso -i 435 TCP_LOG 4
.Ed .Ed
.Pp .Pp
To switch all TCP endpoints from using the freebsd stack to the rack stack use: To switch all TCP endpoints from using the freebsd stack to the RACK stack use:
.Bd -literal -offset indent .Bd -literal -offset indent
# tcpsso -S freebsd TCP_FUNCTION_BLK rack # tcpsso -S freebsd TCP_FUNCTION_BLK rack
.Ed .Ed
.Pp .Pp
All TCP endpoints in the LISTEN state can be switched to the RACK stack by
using:
.Bd -literal -offset indent
# tcpsso -s LISTEN TCP_FUNCTION_BLK rack
.Ed
.Pp
The following command will set the congestion control module of all TCP The following command will set the congestion control module of all TCP
endpoints currently using cubic as its congestion control algorithm to the endpoints currently using cubic as its congestion control algorithm to the
congestion control algorithm newreno: congestion control algorithm newreno: