Page MenuHomeFreeBSD

netstat: fix table header alignment for -x
ClosedPublic

Authored by tuexen on Mon, Apr 21, 9:30 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 25, 11:00 AM
Unknown Object (File)
Fri, Apr 25, 5:01 AM
Unknown Object (File)
Fri, Apr 25, 4:02 AM
Unknown Object (File)
Thu, Apr 24, 12:37 PM
Unknown Object (File)
Wed, Apr 23, 4:13 AM
Unknown Object (File)
Mon, Apr 21, 11:53 PM
Unknown Object (File)
Mon, Apr 21, 7:54 PM
Unknown Object (File)
Mon, Apr 21, 6:09 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