diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-18 07:04:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-18 07:04:02 -0400 |
commit | b60538a0d737609213e4b758881913498d3ff0b4 (patch) | |
tree | 380b75c744b9eb13b56fe386b58ddc2106686372 /net/ipv4/proc.c | |
parent | 386019d3514b3ed9de8d0b05b67e638a7048375b (diff) |
mib: put icmp statistics on struct net
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/proc.c')
-rw-r--r-- | net/ipv4/proc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 765418334b3c..6b43cce05587 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c | |||
@@ -311,15 +311,15 @@ static void icmp_put(struct seq_file *seq) | |||
311 | for (i=0; icmpmibmap[i].name != NULL; i++) | 311 | for (i=0; icmpmibmap[i].name != NULL; i++) |
312 | seq_printf(seq, " Out%s", icmpmibmap[i].name); | 312 | seq_printf(seq, " Out%s", icmpmibmap[i].name); |
313 | seq_printf(seq, "\nIcmp: %lu %lu", | 313 | seq_printf(seq, "\nIcmp: %lu %lu", |
314 | snmp_fold_field((void **) icmp_statistics, ICMP_MIB_INMSGS), | 314 | snmp_fold_field((void **) init_net.mib.icmp_statistics, ICMP_MIB_INMSGS), |
315 | snmp_fold_field((void **) icmp_statistics, ICMP_MIB_INERRORS)); | 315 | snmp_fold_field((void **) init_net.mib.icmp_statistics, ICMP_MIB_INERRORS)); |
316 | for (i=0; icmpmibmap[i].name != NULL; i++) | 316 | for (i=0; icmpmibmap[i].name != NULL; i++) |
317 | seq_printf(seq, " %lu", | 317 | seq_printf(seq, " %lu", |
318 | snmp_fold_field((void **) icmpmsg_statistics, | 318 | snmp_fold_field((void **) icmpmsg_statistics, |
319 | icmpmibmap[i].index)); | 319 | icmpmibmap[i].index)); |
320 | seq_printf(seq, " %lu %lu", | 320 | seq_printf(seq, " %lu %lu", |
321 | snmp_fold_field((void **) icmp_statistics, ICMP_MIB_OUTMSGS), | 321 | snmp_fold_field((void **) init_net.mib.icmp_statistics, ICMP_MIB_OUTMSGS), |
322 | snmp_fold_field((void **) icmp_statistics, ICMP_MIB_OUTERRORS)); | 322 | snmp_fold_field((void **) init_net.mib.icmp_statistics, ICMP_MIB_OUTERRORS)); |
323 | for (i=0; icmpmibmap[i].name != NULL; i++) | 323 | for (i=0; icmpmibmap[i].name != NULL; i++) |
324 | seq_printf(seq, " %lu", | 324 | seq_printf(seq, " %lu", |
325 | snmp_fold_field((void **) icmpmsg_statistics, | 325 | snmp_fold_field((void **) icmpmsg_statistics, |