Bug 1414765 - ifconfig inaccurately rounds exabytes
Summary: ifconfig inaccurately rounds exabytes
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: net-tools
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Ruprich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-19 11:55 UTC by Petr Sklenar
Modified: 2017-01-24 11:57 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-24 11:57:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2017-01-19 11:55:29 UTC
Description of problem:
Do over 0.8 EiB of traffic over an interface and see packet flow

Version-Release number of selected component (if applicable):
net-tools-2.0-0.38.20160329git.fc25.x86_64

How reproducible:
always

Steps to Reproduce:
1.  Do over 0.8 EiB of traffic over an interface

Actual results:
test is comparing this data:


===========
============
:: [   PASS   ] :: 1.0 PiB (Assert: expected 0, got 0)
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1400
        inet 172.16.36.127  netmask 255.255.255.0  broadcast 172.16.36.255
        ether fa:16:3e:03:e9:79  txqueuelen 1000  (Ethernet)

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1  (Local Loopback)
        RX packets 690  bytes 1125899906842625 (1.0 PiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

===========
============
:: [   FAIL   ] :: 1.8 EiB (Assert: expected 0, got 1)
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1400
        inet 172.16.36.127  netmask 255.255.255.0  broadcast 172.16.36.255
        ether fa:16:3e:03:e9:79  txqueuelen 1000  (Ethernet)

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1  (Local Loopback)
        RX packets 690  bytes 2154408931384050514 (1913.4 PiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

===========
============
:: [   FAIL   ] :: 8.0 EiB (Assert: expected 0, got 1)
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1400
        inet 172.16.36.127  netmask 255.255.255.0  broadcast 172.16.36.255
        ether fa:16:3e:03:e9:79  txqueuelen 1000  (Ethernet)

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1  (Local Loopback)
        RX packets 690  bytes 9223372036854775807 (8192.0 PiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

===========
============
:: [   FAIL   ] :: 16.0 EiB (Assert: expected 0, got 1)
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1400
        inet 172.16.36.127  netmask 255.255.255.0  broadcast 172.16.36.255
        ether fa:16:3e:03:e9:79  txqueuelen 1000  (Ethernet)

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1  (Local Loopback)
        RX packets 690  bytes 18446744073709551615 (16384.0 PiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

===========




Expected results:

2154408931384050514:1.8 EiB
9223372036854775807:8.0 EiB
9999999999999999999999999999992154408931384050514:16.0 EiB

Additional info:


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