Page MenuHomeFreeBSD

netstat: fix table header alignment for -x
ClosedPublic

Authored by tuexen on Apr 21 2025, 9:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 23, 1:46 AM
Unknown Object (File)
Mon, Sep 22, 12:29 PM
Unknown Object (File)
Sun, Sep 21, 5:01 AM
Unknown Object (File)
Wed, Sep 17, 7:28 AM
Unknown Object (File)
Sep 9 2025, 10:30 PM
Unknown Object (File)
Sep 7 2025, 3:40 PM
Unknown Object (File)
Sep 2 2025, 3:44 PM
Unknown Object (File)
Jul 5 2025, 3:02 AM
Subscribers

Details

Summary

Add a missing space before R-HIWA to align the table header with the table contents.
The output without this patch:

tuexen@head:~/freebsd-src/usr.bin/netstat % netstat -nxptcp
Active Internet connections
Proto Recv-Q Send-Q Local Address          Foreign Address       R-HIWA S-HIWA R-LOWA S-LOWA R-BCNT S-BCNT R-BMAX S-BMAX   rexmt persist    keep    2msl  delack rcvtime
tcp4       0      0 192.168.1.78.22        192.168.1.199.50790     65700  33580      1   2048      0      0 525600 268640    0.00    0.00 7011.37    0.00    0.00   56.68
tcp4       0      0 192.168.1.78.22        192.168.1.199.50789     65700  33580      1   2048      0      0 525600 268640    0.00    0.00 6996.39    0.00    0.00    0.00

The output with this patch:

tuexen@head:~/freebsd-src/usr.bin/netstat % netstat -nxptcp
Active Internet connections
Proto Recv-Q Send-Q Local Address          Foreign Address        R-HIWA S-HIWA R-LOWA S-LOWA R-BCNT S-BCNT R-BMAX S-BMAX   rexmt persist    keep    2msl  delack rcvtime
tcp4       0      0 192.168.1.78.22        192.168.1.199.50790     65700  33580      1   2048      0      0 525600 268640    0.00    0.00 7005.94    0.00    0.00    2.16
tcp4       0      0 192.168.1.78.22        192.168.1.199.50789     65700  33580      1   2048      0      0 525600 268640    0.00    0.00 6990.96    0.00    0.00    0.00

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable