From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050323 Firefox/1.0.2 Fedora/1.0.2-1.3.1 Description of problem: On systems running a 64bit kernel, the values in /proc/net/dev can get too large to fit in a 32bit object. Since they are counters they should wrap, but instead they stick the the maximum value. This is because sscanf returns the maximum value when the scanned value doesn't fit in the size specified by the format conversion. A solution is to use unsigned long longs for scanning, and cast them to unsigned longs afterward. This process will cause them values to wrap as expected. Version-Release number of selected component (if applicable): net-snmp-5.1.2-11 How reproducible: Always Steps to Reproduce: 1. Look at ifOutOctets on a 64bit system that has been up long enough for the value to wrap. 2. 3. Actual Results: The value sticks at 4294967295 Expected Results: The value should wrap Additional info: I will attach a patch I have tested.
Created attachment 112996 [details] patch to make the network counters wrap
Thanks, checked into next net-snmp update
PM ACK for U2; 3 ACKS so move to CanFix.
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/RHSA-2005-373.html
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/RHSA-2005-395.html