diff options
Diffstat (limited to 'net/ipv4/proc.c')
-rw-r--r-- | net/ipv4/proc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 6da51d55d03a..2a5bf86d2415 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c | |||
@@ -125,6 +125,7 @@ static const struct snmp_mib snmp4_ipextstats_list[] = { | |||
125 | SNMP_MIB_ITEM("OutMcastOctets", IPSTATS_MIB_OUTMCASTOCTETS), | 125 | SNMP_MIB_ITEM("OutMcastOctets", IPSTATS_MIB_OUTMCASTOCTETS), |
126 | SNMP_MIB_ITEM("InBcastOctets", IPSTATS_MIB_INBCASTOCTETS), | 126 | SNMP_MIB_ITEM("InBcastOctets", IPSTATS_MIB_INBCASTOCTETS), |
127 | SNMP_MIB_ITEM("OutBcastOctets", IPSTATS_MIB_OUTBCASTOCTETS), | 127 | SNMP_MIB_ITEM("OutBcastOctets", IPSTATS_MIB_OUTBCASTOCTETS), |
128 | SNMP_MIB_ITEM("InCsumErrors", IPSTATS_MIB_CSUMERRORS), | ||
128 | SNMP_MIB_SENTINEL | 129 | SNMP_MIB_SENTINEL |
129 | }; | 130 | }; |
130 | 131 | ||
@@ -162,6 +163,7 @@ static const struct snmp_mib snmp4_tcp_list[] = { | |||
162 | SNMP_MIB_ITEM("RetransSegs", TCP_MIB_RETRANSSEGS), | 163 | SNMP_MIB_ITEM("RetransSegs", TCP_MIB_RETRANSSEGS), |
163 | SNMP_MIB_ITEM("InErrs", TCP_MIB_INERRS), | 164 | SNMP_MIB_ITEM("InErrs", TCP_MIB_INERRS), |
164 | SNMP_MIB_ITEM("OutRsts", TCP_MIB_OUTRSTS), | 165 | SNMP_MIB_ITEM("OutRsts", TCP_MIB_OUTRSTS), |
166 | SNMP_MIB_ITEM("InCsumErrors", TCP_MIB_CSUMERRORS), | ||
165 | SNMP_MIB_SENTINEL | 167 | SNMP_MIB_SENTINEL |
166 | }; | 168 | }; |
167 | 169 | ||
@@ -172,6 +174,7 @@ static const struct snmp_mib snmp4_udp_list[] = { | |||
172 | SNMP_MIB_ITEM("OutDatagrams", UDP_MIB_OUTDATAGRAMS), | 174 | SNMP_MIB_ITEM("OutDatagrams", UDP_MIB_OUTDATAGRAMS), |
173 | SNMP_MIB_ITEM("RcvbufErrors", UDP_MIB_RCVBUFERRORS), | 175 | SNMP_MIB_ITEM("RcvbufErrors", UDP_MIB_RCVBUFERRORS), |
174 | SNMP_MIB_ITEM("SndbufErrors", UDP_MIB_SNDBUFERRORS), | 176 | SNMP_MIB_ITEM("SndbufErrors", UDP_MIB_SNDBUFERRORS), |
177 | SNMP_MIB_ITEM("InCsumErrors", UDP_MIB_CSUMERRORS), | ||
175 | SNMP_MIB_SENTINEL | 178 | SNMP_MIB_SENTINEL |
176 | }; | 179 | }; |
177 | 180 | ||
@@ -322,15 +325,16 @@ static void icmp_put(struct seq_file *seq) | |||
322 | struct net *net = seq->private; | 325 | struct net *net = seq->private; |
323 | atomic_long_t *ptr = net->mib.icmpmsg_statistics->mibs; | 326 | atomic_long_t *ptr = net->mib.icmpmsg_statistics->mibs; |
324 | 327 | ||
325 | seq_puts(seq, "\nIcmp: InMsgs InErrors"); | 328 | seq_puts(seq, "\nIcmp: InMsgs InErrors InCsumErrors"); |
326 | for (i=0; icmpmibmap[i].name != NULL; i++) | 329 | for (i=0; icmpmibmap[i].name != NULL; i++) |
327 | seq_printf(seq, " In%s", icmpmibmap[i].name); | 330 | seq_printf(seq, " In%s", icmpmibmap[i].name); |
328 | seq_printf(seq, " OutMsgs OutErrors"); | 331 | seq_printf(seq, " OutMsgs OutErrors"); |
329 | for (i=0; icmpmibmap[i].name != NULL; i++) | 332 | for (i=0; icmpmibmap[i].name != NULL; i++) |
330 | seq_printf(seq, " Out%s", icmpmibmap[i].name); | 333 | seq_printf(seq, " Out%s", icmpmibmap[i].name); |
331 | seq_printf(seq, "\nIcmp: %lu %lu", | 334 | seq_printf(seq, "\nIcmp: %lu %lu %lu", |
332 | snmp_fold_field((void __percpu **) net->mib.icmp_statistics, ICMP_MIB_INMSGS), | 335 | snmp_fold_field((void __percpu **) net->mib.icmp_statistics, ICMP_MIB_INMSGS), |
333 | snmp_fold_field((void __percpu **) net->mib.icmp_statistics, ICMP_MIB_INERRORS)); | 336 | snmp_fold_field((void __percpu **) net->mib.icmp_statistics, ICMP_MIB_INERRORS), |
337 | snmp_fold_field((void __percpu **) net->mib.icmp_statistics, ICMP_MIB_CSUMERRORS)); | ||
334 | for (i=0; icmpmibmap[i].name != NULL; i++) | 338 | for (i=0; icmpmibmap[i].name != NULL; i++) |
335 | seq_printf(seq, " %lu", | 339 | seq_printf(seq, " %lu", |
336 | atomic_long_read(ptr + icmpmibmap[i].index)); | 340 | atomic_long_read(ptr + icmpmibmap[i].index)); |