Bug 4182

Summary: netstat should always print the interface name
Product: Base System Reporter: Craig Leres <leres>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 2.2.2-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Craig Leres freebsd_committer freebsd_triage 1997-07-28 05:40:00 UTC
	The current version of netstat does not print the interface
	name for AF_LINK routing entries. This makes debugging
	network problems more difficult.

	(BTW, I sent this in a day or two ago but send-pr apparently
	ate it. Requiring a particular format for bug reports is ok but
	forcing us to use a badly designed, broken and unsafe interface
	is going a bit far...)

Fix: The appended context diff causes netstat to always print the
	network interface name:

	% netstat -rn | grep link
	131.243.1/24       link#1             UC          0        0      ed0
	131.243.1.100/30   link#2             UC          0        0      wl0
	224/4              link#1             UCS         0        0      ed0

	It also cleans up some formatting and whitespace foobars.
	
RCS file: RCS/route.c,v
retrieving revision 1.1
How-To-Repeat: 
	% netstat -rn | grep link
	131.243.1/24       link#1             UC          0        0 
	131.243.1.100/30   link#2             UC          0        0 
	224/4              link#1             UCS         0        0
Comment 1 Poul-Henning Kamp freebsd_committer freebsd_triage 1998-04-19 19:18:31 UTC
State Changed
From-To: open->closed

committed, thanks!