Bug 579854 - netstat -s uses 32bit integers
Summary: netstat -s uses 32bit integers
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: net-tools
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jiri Popelka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 580054
TreeView+ depends on / blocked
 
Reported: 2010-04-06 18:33 UTC by Sami Farin
Modified: 2013-11-25 11:27 UTC (History)
2 users (show)

Fixed In Version: net-tools-1.60-104.fc14
Clone Of:
: 580054 (view as bug list)
Environment:
Last Closed: 2010-09-11 03:35:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
use %llu in printf, strtoull instead of strtoul (1.24 KB, patch)
2010-04-06 18:33 UTC, Sami Farin
no flags Details | Diff
improved patch - changed all %lu and %u to %llu (23.26 KB, patch)
2010-08-10 14:10 UTC, Jiri Popelka
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Debian BTS 561161 0 None None None Never

Description Sami Farin 2010-04-06 18:33:55 UTC
Created attachment 404767 [details]
use %llu in printf, strtoull instead of strtoul

Description of problem:
netstat -s uses int to handle 64 bit integers

Version-Release number of selected component (if applicable):


How reproducible:
always, when counts are high enough

Steps to Reproduce:
1. netstat -s
2.
3.
  
Actual results:
IpExt:
    InBcastPkts: 23528
    InOctets: -264005300
    OutOctets: -1974424477
    InBcastOctets: 7865000

Expected results:
IpExt:
    InBcastPkts: 23528
    InOctets: 167240816373
    OutOctets: 144058807869
    InBcastOctets: 7865000

Additional info:

Comment 1 Jiri Popelka 2010-04-07 11:47:23 UTC
Thank you for the patch.

I found the same bug in Debian bug tracking system:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=561161

You can post your patch there to help them too (net-tools has no upstream), if you want.

Comment 2 Fedora Update System 2010-04-07 11:55:55 UTC
net-tools-1.60-102.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/net-tools-1.60-102.fc13

Comment 3 Fedora Update System 2010-04-07 20:54:50 UTC
net-tools-1.60-102.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update net-tools'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/net-tools-1.60-102.fc13

Comment 4 Fedora Update System 2010-04-13 01:40:00 UTC
net-tools-1.60-102.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Jiri Popelka 2010-08-10 14:07:51 UTC
Reopening.
There are still some unsigned long long values printed (printf) with %lu or %u.

Comment 6 Jiri Popelka 2010-08-10 14:10:11 UTC
Created attachment 437894 [details]
improved patch - changed all %lu and %u to %llu

Comment 7 Fedora Update System 2010-08-10 14:29:22 UTC
net-tools-1.60-104.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/net-tools-1.60-104.fc14

Comment 8 Fedora Update System 2010-08-11 02:55:33 UTC
net-tools-1.60-104.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update net-tools'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/net-tools-1.60-104.fc14

Comment 9 Fedora Update System 2010-09-11 03:35:41 UTC
net-tools-1.60-104.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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