mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
57ef42d59d
commit
a20f5799ca
5 changed files with 12 additions and 19 deletions
|
@ -344,7 +344,7 @@ static int snmp_seq_show(struct seq_file *seq, void *v)
|
|||
|
||||
for (i = 0; snmp4_ipstats_list[i].name != NULL; i++)
|
||||
seq_printf(seq, " %lu",
|
||||
snmp_fold_field((void **)ip_statistics,
|
||||
snmp_fold_field((void **)init_net.mib.ip_statistics,
|
||||
snmp4_ipstats_list[i].entry));
|
||||
|
||||
icmp_put(seq); /* RFC 2011 compatibility */
|
||||
|
@ -431,7 +431,7 @@ static int netstat_seq_show(struct seq_file *seq, void *v)
|
|||
seq_puts(seq, "\nIpExt:");
|
||||
for (i = 0; snmp4_ipextstats_list[i].name != NULL; i++)
|
||||
seq_printf(seq, " %lu",
|
||||
snmp_fold_field((void **)ip_statistics,
|
||||
snmp_fold_field((void **)init_net.mib.ip_statistics,
|
||||
snmp4_ipextstats_list[i].entry));
|
||||
|
||||
seq_putc(seq, '\n');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue