[Bug 266474] Column truncated -- netstat routing table output
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 266474] Column truncated -- netstat routing table output"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Oct 2024 10:03:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266474 --- Comment #2 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3e46d65d56198760ad0a867a651dffb11fbd258d commit 3e46d65d56198760ad0a867a651dffb11fbd258d Author: Lexi Winter <lexi@le-Fay.ORG> AuthorDate: 2024-05-08 09:44:29 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> CommitDate: 2024-10-10 10:00:48 +0000 netstat: increase width of Netif column 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. PR: 266474 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) (cherry picked from commit 6b86b8f0f6b6bfd5d93e45c7f584ec5bffac2a62) usr.bin/netstat/nhops.c | 5 ++--- usr.bin/netstat/route.c | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) -- You are receiving this mail because: You are the assignee for the bug.