Bug 711187

Summary: netstat -s : Protocol numbers appear to be stored or outputted in 32-bit format
Product: Red Hat Enterprise Linux 5 Reporter: Phillip T. George <mlptgml>
Component: net-toolsAssignee: Jiri Popelka <jpopelka>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.4CC: mlptgml
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-07 10:09:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Phillip T. George 2011-06-06 18:38:55 UTC
Description of problem:
IP protocol numbers appear to be stored or outputted in 32-bit format, as data can differ between netstat -s and /proc/net/snmp.  Specific example:
netstat-s shows IP:431529590 requests sent out
/proc/net/snmp shows 9021579651 for OutRequests of IP.

Version-Release number of selected component (if applicable):
net-tools-1.60-78.el5
Likely affects other versions, as I have not seen this bug reported.

How reproducible:
Every time it is ran, though it requires a counter to be above 4,294,967,296.

Steps to Reproduce:
1. Get an IP protocol count of any value above 4,294,967,296
2. Run netstat -s
3. Compare with /proc/net/snmp
  
Actual results:
Values would not be consistent

Expected results:
Values shown in netstat -s should match values in /proc/net/snmp

Additional info:

Comment 1 Jiri Popelka 2011-06-07 10:09:12 UTC
(In reply to comment #0)
> Version-Release number of selected component (if applicable):
> net-tools-1.60-78.el5
> Likely affects other versions, as I have not seen this bug reported.

Fedora version is bug #579854 (fixed in net-tools-1.60-104.fc14)
RHEL-6 version is bug #580054 (fixed in net-tools-1.60-103.el6)
RHEL-5 version is bug #622734 (so I'm making this one duplicate of it)

I know bug #622734 is private, but I probably can't make it public.
However the patch should be visible to you (if you are interested)
https://bugzilla.redhat.com/attachment.cgi?id=437908

Thank you for the report.

*** This bug has been marked as a duplicate of bug 622734 ***

Comment 2 Phillip T. George 2011-06-07 14:44:02 UTC
I would think there should be a public version left open for updates for people to see.  I'm not too concerned with the patch, as there is an obvious workaround.  I was more concerned with raising awareness of the issue.