Bug 711187 - netstat -s : Protocol numbers appear to be stored or outputted in 32-bit format
Summary: netstat -s : Protocol numbers appear to be stored or outputted in 32-bit format
Keywords:
Status: CLOSED DUPLICATE of bug 622734
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: net-tools
Version: 5.4
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jiri Popelka
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-06 18:38 UTC by Phillip T. George
Modified: 2011-06-07 14:44 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-07 10:09:12 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.