net: Add MIB counters for checksum errors
authorEric Dumazet <edumazet@google.com>
Mon, 29 Apr 2013 08:39:56 +0000 (08:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Apr 2013 19:14:03 +0000 (15:14 -0400)
commit6a5dc9e598fe90160fee7de098fa319665f5253e
tree7f2c2130e3dec81aea01e997cec7e87744f02694
parentf233a976ad15c3b8c54c0157f3c41d23f7514279
net: Add MIB counters for checksum errors

Add MIB counters for checksum errors in IP layer,
and TCP/UDP/ICMP layers, to help diagnose problems.

$ nstat -a | grep  Csum
IcmpInCsumErrors                72                 0.0
TcpInCsumErrors                 382                0.0
UdpInCsumErrors                 463221             0.0
Icmp6InCsumErrors               75                 0.0
Udp6InCsumErrors                173442             0.0
IpExtInCsumErrors               10884              0.0

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
12 files changed:
include/uapi/linux/snmp.h
net/ipv4/icmp.c
net/ipv4/ip_input.c
net/ipv4/proc.c
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv4/udp.c
net/ipv6/icmp.c
net/ipv6/proc.c
net/ipv6/tcp_ipv6.c
net/ipv6/udp.c