Bugzilla – Bug 104487
netstat --interface=iface doesn't work
Last modified: 2005-08-29 14:31:29 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.
the man pages are borked
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.
ak did you have anything to do with that? :)
man page is fixed. The other thing is a feature request which can be achieved just as well with grep.