snmp: 64bit ipstats_mib for all arches
Eric Dumazet authored

/proc/net/snmp and /proc/net/netstat expose SNMP counters.

Width of these counters is either 32 or 64 bits, depending on the size
of "unsigned long" in kernel.

This means user program parsing these files must already be prepared to
deal with 64bit values, regardless of user program being 32 or 64 bit.

This patch introduces 64bit snmp values for IPSTAT mib, where some
counters can wrap pretty fast if they are 32bit wide.

# netstat -s|egrep "InOctets|OutOctets"
    InOctets: 244068329096
    OutOctets: 244069348848
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
4ce3c183
Name Last commit Last update
..
802 Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
8021q vlan: 64 bit rx counters
9p kernel-wide: replace USHORT_MAX, SHORT_MAX and SHORT_MIN with USHRT_MAX, SHRT_MAX and SHRT_MIN
appletalk Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
atm net-next: remove useless union keyword
ax25 net: sk_sleep() helper
bluetooth net: use __packed annotation
bridge Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
caif caif: Kconfig and Makefile fixes
can net/can: Use memdup_user
core net/core: use ntohs for skb->protocol
dcb include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
dccp snmp: add align parameter to snmp_mib_init()
decnet net-next: remove useless union keyword
dsa Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
econet econet: fix locking
ethernet net-next: remove useless union keyword
ieee802154 ieee802154: Fix possible NULL pointer dereference in wpan_phy_alloc
ipv4 snmp: 64bit ipstats_mib for all arches
ipv6 snmp: 64bit ipstats_mib for all arches
ipx include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
irda irttp: Print device parameters and statistics as unsigned
iucv net: use __packed annotation
key pfkey: add severity to printk
l2tp net-next: remove useless union keyword
lapb
llc
mac80211
netfilter
netlabel
netlink
netrom
packet
phonet
rds
rfkill
rose
rxrpc
sched
sctp
sunrpc
tipc
unix
wanrouter
wimax
wireless
x25
xfrm
Kconfig
Makefile
TUNABLE
compat.c
nonet.c
socket.c
sysctl_net.c