← Back to team overview

touch-packages team mailing list archive

[Bug 597236] Re: netstat statistics overflow

 

The patch should have made it into Utopic+

** Tags added: amd64 lucid patch-accepted-debian patch-accepted-upstream
precise trusty

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to net-tools in Ubuntu.
https://bugs.launchpad.net/bugs/597236

Title:
  netstat statistics overflow

Status in net-tools package in Ubuntu:
  Confirmed
Status in net-tools package in Debian:
  Fix Released

Bug description:
  Binary package hint: net-tools

  In netstat's summary "netstat -s" the fields 'InOctets' and
  'OutOctets' appear to be a 32 bit signed value. When sending or
  receiving large amounts of packets the values occasionally wrap around
  and change sign.

  $ netstat -s
  ...
  IpExt:
  ...
      InOctets: 201874790
      OutOctets: -2029455654
  ...

  The raw data however is correct:

  $ cat /proc/net/dev
  Inter-|   Receive                                                |  Transmit
   face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
      lo:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
    eth0:22360647  218274    0    0    0     0          0         5 76188265  129485    0    0    0     0       0          0
    lab0:11152431249 131487214    0    0    0     0          0         6 51840697004 129560924    0    0    0     0       0          0

  Versions:
  ubuntu 10.04 - x64_86
  net-tools 1.60
  netstat 1.42 (2001-04-15)

  Netstat should use a bigger integer type, at the very least use an
  unsigned interger type.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/net-tools/+bug/597236/+subscriptions