Bug 196655

Summary: netstat: when using --interface=ethX 1, the counter remains unchanged.
Product: Red Hat Enterprise Linux 4 Reporter: Jose Plans <jplans>
Component: net-toolsAssignee: Radek Vokál <rvokal>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0241 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-01 23:52:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 176344    
Attachments:
Description Flags
patch removing static from if_readlist_rep() none

Description Jose Plans 2006-06-26 09:21:10 UTC
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.

Which packages?: 
 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.

Comment 1 Jose Plans 2006-06-26 09:21:11 UTC
Created attachment 131520 [details]
patch removing static from if_readlist_rep()

Comment 2 RHEL Program Management 2006-08-18 15:20:58 UTC
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
release.

Comment 7 Red Hat Bugzilla 2007-05-01 23:52:27 UTC
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.

http://rhn.redhat.com/errata/RHBA-2007-0241.html