opnsense-src/usr.bin/netstat
Mike Karels 913ebccc8e netstat -i: do not truncate interface names
The field for interface names for netstat -i was 5 characters by
default, which is no longer sufficient with names like "vlan1234"
and "vtnet0".  netstat -iW computed the necessary field width, but
also enlarged the address field by a lot (especially with IPv6 enabled).
Make netstat -i compute the field width for interface names with or
without -W.  Note that the existing default output does not fit in
80 columns in any case.  Update the man page accordingly, documenting
the remaining effect of -W with -i.  Also add -W to the list of
General Options, as there are numerous pointers to this.

Reported by:	Chris Ross
Reviewed by:	melifaro, rgrimes, cy
Differential Revision: https://reviews.freebsd.org/D35703

(cherry picked from commit 231092bb6f)
2022-07-13 08:20:03 -05:00
..
bpf.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
common.c usr.bin/netstat: use roundup2 when rounding up to power of 2. 2021-05-15 21:40:23 -07:00
common.h Introduce scalable route multipath. 2020-10-03 10:47:17 +00:00
if.c netstat -i: do not truncate interface names 2022-07-13 08:20:03 -05:00
inet.c netstat: Fix typo 2022-03-04 20:41:55 +01:00
inet6.c icmp6: Count packets dropped due to an invalid hop limit 2020-10-19 17:07:19 +00:00
ipsec.c ipsec(4): Fix a few typos in error messages 2022-02-13 08:54:53 +01:00
main.c Extend netstat to display TCP stack and detailed congestion state 2020-10-09 10:07:41 +00:00
Makefile Introduce scalable route multipath. 2020-10-03 10:47:17 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
mbuf.c
mroute.c Fix netstat -gs with ip_mroute module and/or vnet 2019-11-12 01:03:08 +00:00
mroute6.c
netgraph.c
netisr.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
netstat.1 netstat -i: do not truncate interface names 2022-07-13 08:20:03 -05:00
netstat.h Extend netstat to display TCP stack and detailed congestion state 2020-10-09 10:07:41 +00:00
nhgrp.c Introduce scalable route multipath. 2020-10-03 10:47:17 +00:00
nhops.c netstat: fix nhop prepend printing. 2022-03-28 08:47:23 +00:00
nlist_symbols Fix netstat -rs reporting. 2021-04-04 08:44:01 +00:00
pfkey.c
route.c Fix netstat -rs reporting. 2021-04-04 08:44:01 +00:00
sctp.c
unix.c Use uintptr_t alone when assigning to kvaddr_t variables. 2018-07-10 13:03:06 +00:00