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, Jul 5, 3:02 AM
Unknown Object (File)
Fri, Jul 4, 12:33 PM
Unknown Object (File)
Thu, Jul 3, 8:13 AM
Unknown Object (File)
Tue, Jun 24, 1:54 PM
Unknown Object (File)
Mon, Jun 23, 5:04 AM
Unknown Object (File)
Jun 18 2025, 10:59 PM
Unknown Object (File)
Jun 18 2025, 6:07 AM
Unknown Object (File)
Jun 17 2025, 8:39 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