mirror of
https://github.com/opnsense/src.git
synced 2026-02-23 09:56:47 -05:00
The previous width of Netif (10 or 8) was too short for modern interface names; make it 12, which is long enough to display "epair0a.1000". This came up in practice with genet(4) interfaces, since the base interface name is long enough that with the previous limit, VLAN identifiers would be truncated at 1 character in the IPv6 output: "genet0.100" becomes "genet0.1". The width is now fixed, and doesn't depend on the address family, because there's no reason that length of the interface name would vary based on the AF. Reviewed by: imp,zlei,Mina Galić Pull Request: https://github.com/freebsd/freebsd-src/pull/1223 (cherry picked from commit d33b87e8cf91a6bcb5eac0ecc0371c1041c61050) netstat: for -W, use IFNAMSIZ If -W is specified, use IFNAMSIZ as the width of the Netif column, instead of the default 12. (cherry picked from commit ae9c0ba8ef2f540f9030909cf07e3c59f876fd23) |
||
|---|---|---|
| .. | ||
| bpf.c | ||
| common.c | ||
| common.h | ||
| if.c | ||
| inet.c | ||
| inet6.c | ||
| ipsec.c | ||
| main.c | ||
| Makefile | ||
| Makefile.depend | ||
| Makefile.depend.options | ||
| mbuf.c | ||
| mroute.c | ||
| mroute6.c | ||
| netgraph.c | ||
| netisr.c | ||
| netstat.1 | ||
| netstat.h | ||
| nhgrp.c | ||
| nhops.c | ||
| nlist_symbols | ||
| pfkey.c | ||
| route.c | ||
| route_netlink.c | ||
| sctp.c | ||
| unix.c | ||