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:
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.
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
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
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.
Reopening. There are still some unsigned long long values printed (printf) with %lu or %u.
Created attachment 437894 [details] improved patch - changed all %lu and %u to %llu
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
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
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.