Bug 35838

Summary: Change to size of WID_IF in usr.bin/netstat/route.c
Product: Base System Reporter: Scot W. Hetzel <hetzels>
Component: binAssignee: Bruce M Simpson <bms>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.5-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Scot W. Hetzel 2002-03-13 04:30:00 UTC
With an ET/5025PQ Quad T1 card installed in a 4.5-STABLE server (configured
for frame relay), the output of netstat -r shows that the interface name is
truncated:

ns0# netstat -rn | head -n 8
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            10.0.0.1           UGSc    24533   210882   fxp0
10.0.1.220/30      10.0.1.222         Uc          0        0 etha73
127                lo0                UScB        0        0    lo0
127.0.0.1          127.0.0.1          UH          2       14    lo0

etha73 is suppossed to be etha736.  Currently, the -W flag to netstat doesn't
increase this column's width.

Fix: With the below patch, the output of netstat -rnW is:

ns0# netstat -rnW | head -n 8
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use    Mtu    Netif Expire
default            10.0.0.1           UGSc    24535   210884   1500     fxp0
10.0.1.220/30      10.0.1.222         Uc          0        0   1500  etha736
127                lo0                UScB        0        0  16384      lo0
127.0.0.1          127.0.0.1          UH          2       14  16384      lo0

Could this change be made to CURRENT, and MFC'd to STABLE?
Comment 1 Bruce M Simpson freebsd_committer freebsd_triage 2003-11-25 16:44:21 UTC
Responsible Changed
From-To: freebsd-bugs->bms

I'm in hoover up network PRs mode. I'll look into this. 

This sounds like a relatively minor nit, I may commit this with fixups.
Comment 2 Bruce M Simpson freebsd_committer freebsd_triage 2003-11-27 05:41:02 UTC
State Changed
From-To: open->analyzed

Patch winging its way to re@ as we speak.
Comment 3 Bruce M Simpson freebsd_committer freebsd_triage 2003-11-28 17:33:42 UTC
State Changed
From-To: analyzed->patched

Committed to -CURRENT, an MFC should be forthcoming.
Comment 4 Bruce M Simpson freebsd_committer freebsd_triage 2003-11-30 02:59:23 UTC
State Changed
From-To: patched->closed

MFCed, thanks!