Bug 4182 - netstat should always print the interface name
Summary: netstat should always print the interface name
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 2.2.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1997-07-28 05:40 UTC by Craig Leres
Modified: 1998-04-19 19:18 UTC (History)
0 users

See Also:


Attachments
file.diff (8.23 KB, patch)
1997-07-28 05:40 UTC, Craig Leres
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!