Bug 104487

Summary: netstat --interface=iface doesn't work
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Tony Jones <tonyj>
Component: NetworkAssignee: Mads Martin Joergensen <mmj>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Tony Jones 2005-08-12 19:47:33 UTC
1) netstat man page is confused about '--interface" vs "--interfaces" 

From manpage:

netstat         {--interfaces|-i}          [iface]

later:

--interface=iface , -i

2) no variant of --interface=iface or --interfaces=iface works, all generate a
usage error.

dhcp-83:~ # netstat --interfaces=eth0
netstat: option `--interfaces' doesn't allow an argument

dhcp-83:~ # netstat --interface=eth0
netstat: option `--interfaces' doesn't allow an argument

Skipping the = emits all interfaces which is not correct

dhcp-83:~ # netstat --interface eth0
Kernel Interface table
Iface   MTU Met   RX-OK RX-ERR RX-DRP RX-OVR   TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0   1500   0  125530     11      0      0    2289      0      0      0 BMNRU
lo    16436   0     238      0      0      0     238      0      0      0 LRU

Problem exists in 9.3 also.
Comment 1 Hendrik Vogelsang 2005-08-22 13:27:44 UTC
the man pages are borked
Comment 2 Tony Jones 2005-08-22 16:42:40 UTC
It would be nice if the interface=xxx option could be made to work (for all
usage cases of netstat).  As an example, to limit the output of "Internet
Connections"  to a particular interface rather than all (netstat
--interface=xxx, netstat -a --interface=xxx)

Plus of course clean up the inconsistencies in the manpage.
Comment 3 Hendrik Vogelsang 2005-08-23 11:48:33 UTC
ak did you have anything to do with that? :)
Comment 4 Mads Martin Joergensen 2005-08-29 14:31:29 UTC
man page is fixed. The other thing is a feature request which can be achieved
just as well with grep.