There is discrepancy between the counters (not just the numbers
itself) betwen ifconfig and iproute.

Kernel is 2.6.20 and iproute is either from 2009 or 2010 :) same thing.

# ifconfig eth0 ; ip -s -s l sh dev eth0
eth0      Link encap:Ethernet  HWaddr 00:14:5e:*:*:*
          inet addr:193.*.*.*  Bcast:0.0.0.0  Mask:255.255.255.240
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1034491901205 errors:820323 dropped:123097020
overruns:0 frame:820323
          TX packets:1032552365198 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:409136643406251 (372.1 TiB)  TX
bytes:408636201830093 (371.6 TiB)
          Interrupt:17 Memory:da000000-da012100

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000
    link/ether 00:14:5e:*:*:* brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped overrun mcast
    2353756587 3699750165 820323  0       820323  6681632
    RX errors: length  crc     frame   fifo    missed
               0        0       0       0       123097020
    TX: bytes  packets  errors  dropped carrier collsns
    128386765  1760214158 0       0       0       0
    TX errors: aborted fifo    window  heartbeat
               0        0       0       0

/proc/net/dev:
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed
multicast|bytes    packets errs drop fifo colls carrier compressed
  eth0:409139548076829 1034499322053 820323 123112932    0 820323
    0   6681657 408639099654293 1032559769553    0    0    0     0
  0          0


You may notice RX drops in ifconfig which is zero in iproute (but
seems to be same as frames). /proc/net/dev's drop seem to correlate
with ifconfig's numbers in this case. Something's wrong here it seems.

Peter



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to