diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-18 07:02:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-18 07:02:08 -0400 |
commit | 57ef42d59d1c1d79be59fc3c6380ae14234e38c3 (patch) | |
tree | 4ccc2166f6967ac1fb582715f7d7d5bb5c9205fc /net/ipv4/proc.c | |
parent | 9b4661bd6e5437508e0920608f3213c23212cd1b (diff) |
mib: put tcp statistics on struct net
Proc temporary uses stats from init_net.
BTW, TCP_XXX_STATS are beautiful (w/o do { } while (0) facing) again :)
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index eb5cee279c5f..19e1d8e257da 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c | |||
@@ -359,11 +359,11 @@ static int snmp_seq_show(struct seq_file *seq, void *v) | |||
359 | /* MaxConn field is signed, RFC 2012 */ | 359 | /* MaxConn field is signed, RFC 2012 */ |
360 | if (snmp4_tcp_list[i].entry == TCP_MIB_MAXCONN) | 360 | if (snmp4_tcp_list[i].entry == TCP_MIB_MAXCONN) |
361 | seq_printf(seq, " %ld", | 361 | seq_printf(seq, " %ld", |
362 | snmp_fold_field((void **)tcp_statistics, | 362 | snmp_fold_field((void **)init_net.mib.tcp_statistics, |
363 | snmp4_tcp_list[i].entry)); | 363 | snmp4_tcp_list[i].entry)); |
364 | else | 364 | else |
365 | seq_printf(seq, " %lu", | 365 | seq_printf(seq, " %lu", |
366 | snmp_fold_field((void **)tcp_statistics, | 366 | snmp_fold_field((void **)init_net.mib.tcp_statistics, |
367 | snmp4_tcp_list[i].entry)); | 367 | snmp4_tcp_list[i].entry)); |
368 | } | 368 | } |
369 | 369 | ||