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)
Sat, Sep 12, 1:44 PM
Unknown Object (File)
Thu, Sep 10, 11:38 PM
Unknown Object (File)
Thu, Sep 10, 8:52 PM
Unknown Object (File)
Thu, Sep 10, 5:00 PM
Unknown Object (File)
Thu, Sep 10, 2:17 AM
Unknown Object (File)
Tue, Sep 8, 9:19 PM
Unknown Object (File)
Mon, Sep 7, 9:09 PM
Unknown Object (File)
Mon, Sep 7, 3:35 PM
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