Red Hat Bugzilla – Bug 196655
netstat: when using --interface=ethX 1, the counter remains unchanged.
Last modified: 2007-11-30 17:07:25 EST
When using netstat and wanting to only get statistics from one interface, none
of the counters get updated and therefore, the output keeps unchanged.
How to reproduce it:
% netstat --interface=eth0 1
It will always show the same counters. Always reproducible.
Reproducible with RHEL4U4beta, seems fixed in FC5.
Basically the issue came from having if_readlist_rep() declared static from the
lib/interface and being called from netstat.c. This prevented the output to be
updated from /proc.
Attached you will find the patch that fixes the issue, please let me know if you
need more details about it.
Created attachment 131520 [details]
patch removing static from if_readlist_rep()
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.