aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/proc.c
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-07-18 07:02:42 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-18 07:02:42 -0400
commita20f5799ca7ceb24d63c74b6fdad4b0c0ee91f4f (patch)
tree0262e4a674c611044d78c9f62f378473df0ce0f1 /net/ipv4/proc.c
parent57ef42d59d1c1d79be59fc3c6380ae14234e38c3 (diff)
mib: put ip statistics on struct net
Similar to tcp one. 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c
index 19e1d8e257da..2698bb2ce98f 100644
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -344,7 +344,7 @@ static int snmp_seq_show(struct seq_file *seq, void *v)
344 344
345 for (i = 0; snmp4_ipstats_list[i].name != NULL; i++) 345 for (i = 0; snmp4_ipstats_list[i].name != NULL; i++)
346 seq_printf(seq, " %lu", 346 seq_printf(seq, " %lu",
347 snmp_fold_field((void **)ip_statistics, 347 snmp_fold_field((void **)init_net.mib.ip_statistics,
348 snmp4_ipstats_list[i].entry)); 348 snmp4_ipstats_list[i].entry));
349 349
350 icmp_put(seq); /* RFC 2011 compatibility */ 350 icmp_put(seq); /* RFC 2011 compatibility */
@@ -431,7 +431,7 @@ static int netstat_seq_show(struct seq_file *seq, void *v)
431 seq_puts(seq, "\nIpExt:"); 431 seq_puts(seq, "\nIpExt:");
432 for (i = 0; snmp4_ipextstats_list[i].name != NULL; i++) 432 for (i = 0; snmp4_ipextstats_list[i].name != NULL; i++)
433 seq_printf(seq, " %lu", 433 seq_printf(seq, " %lu",
434 snmp_fold_field((void **)ip_statistics, 434 snmp_fold_field((void **)init_net.mib.ip_statistics,
435 snmp4_ipextstats_list[i].entry)); 435 snmp4_ipextstats_list[i].entry));
436 436
437 seq_putc(seq, '\n'); 437 seq_putc(seq, '\n');