Bug 104487 - netstat --interface=iface doesn't work
Summary: netstat --interface=iface doesn't work
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Network (show other bugs)
Version: Beta 1
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Mads Martin Joergensen
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-12 19:47 UTC by Tony Jones
Modified: 2005-08-29 14:31 UTC (History)
0 users

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

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