diff options
| author | Eric Dumazet <edumazet@google.com> | 2013-04-29 04:39:56 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-04-29 15:14:03 -0400 |
| commit | 6a5dc9e598fe90160fee7de098fa319665f5253e (patch) | |
| tree | 7f2c2130e3dec81aea01e997cec7e87744f02694 /include/uapi/linux | |
| parent | f233a976ad15c3b8c54c0157f3c41d23f7514279 (diff) | |
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>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/snmp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/snmp.h b/include/uapi/linux/snmp.h index fefdec91c68b..df2e8b4f9c03 100644 --- a/include/uapi/linux/snmp.h +++ b/include/uapi/linux/snmp.h | |||
| @@ -50,6 +50,7 @@ enum | |||
| 50 | IPSTATS_MIB_OUTMCASTOCTETS, /* OutMcastOctets */ | 50 | IPSTATS_MIB_OUTMCASTOCTETS, /* OutMcastOctets */ |
| 51 | IPSTATS_MIB_INBCASTOCTETS, /* InBcastOctets */ | 51 | IPSTATS_MIB_INBCASTOCTETS, /* InBcastOctets */ |
| 52 | IPSTATS_MIB_OUTBCASTOCTETS, /* OutBcastOctets */ | 52 | IPSTATS_MIB_OUTBCASTOCTETS, /* OutBcastOctets */ |
| 53 | IPSTATS_MIB_CSUMERRORS, /* InCsumErrors */ | ||
| 53 | __IPSTATS_MIB_MAX | 54 | __IPSTATS_MIB_MAX |
| 54 | }; | 55 | }; |
| 55 | 56 | ||
| @@ -87,6 +88,7 @@ enum | |||
| 87 | ICMP_MIB_OUTTIMESTAMPREPS, /* OutTimestampReps */ | 88 | ICMP_MIB_OUTTIMESTAMPREPS, /* OutTimestampReps */ |
| 88 | ICMP_MIB_OUTADDRMASKS, /* OutAddrMasks */ | 89 | ICMP_MIB_OUTADDRMASKS, /* OutAddrMasks */ |
| 89 | ICMP_MIB_OUTADDRMASKREPS, /* OutAddrMaskReps */ | 90 | ICMP_MIB_OUTADDRMASKREPS, /* OutAddrMaskReps */ |
| 91 | ICMP_MIB_CSUMERRORS, /* InCsumErrors */ | ||
| 90 | __ICMP_MIB_MAX | 92 | __ICMP_MIB_MAX |
| 91 | }; | 93 | }; |
| 92 | 94 | ||
| @@ -103,6 +105,7 @@ enum | |||
| 103 | ICMP6_MIB_INERRORS, /* InErrors */ | 105 | ICMP6_MIB_INERRORS, /* InErrors */ |
| 104 | ICMP6_MIB_OUTMSGS, /* OutMsgs */ | 106 | ICMP6_MIB_OUTMSGS, /* OutMsgs */ |
| 105 | ICMP6_MIB_OUTERRORS, /* OutErrors */ | 107 | ICMP6_MIB_OUTERRORS, /* OutErrors */ |
| 108 | ICMP6_MIB_CSUMERRORS, /* InCsumErrors */ | ||
| 106 | __ICMP6_MIB_MAX | 109 | __ICMP6_MIB_MAX |
| 107 | }; | 110 | }; |
| 108 | 111 | ||
| @@ -130,6 +133,7 @@ enum | |||
| 130 | TCP_MIB_RETRANSSEGS, /* RetransSegs */ | 133 | TCP_MIB_RETRANSSEGS, /* RetransSegs */ |
| 131 | TCP_MIB_INERRS, /* InErrs */ | 134 | TCP_MIB_INERRS, /* InErrs */ |
| 132 | TCP_MIB_OUTRSTS, /* OutRsts */ | 135 | TCP_MIB_OUTRSTS, /* OutRsts */ |
| 136 | TCP_MIB_CSUMERRORS, /* InCsumErrors */ | ||
| 133 | __TCP_MIB_MAX | 137 | __TCP_MIB_MAX |
| 134 | }; | 138 | }; |
| 135 | 139 | ||
| @@ -147,6 +151,7 @@ enum | |||
| 147 | UDP_MIB_OUTDATAGRAMS, /* OutDatagrams */ | 151 | UDP_MIB_OUTDATAGRAMS, /* OutDatagrams */ |
| 148 | UDP_MIB_RCVBUFERRORS, /* RcvbufErrors */ | 152 | UDP_MIB_RCVBUFERRORS, /* RcvbufErrors */ |
| 149 | UDP_MIB_SNDBUFERRORS, /* SndbufErrors */ | 153 | UDP_MIB_SNDBUFERRORS, /* SndbufErrors */ |
| 154 | UDP_MIB_CSUMERRORS, /* InCsumErrors */ | ||
| 150 | __UDP_MIB_MAX | 155 | __UDP_MIB_MAX |
| 151 | }; | 156 | }; |
| 152 | 157 | ||
