diff options
author | Pavel Emelyanov <xemul@openvz.org> | 2008-07-16 23:22:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-16 23:22:04 -0400 |
commit | 81cc8a75d944fa39fc333c2c329c8e8b3c62cada (patch) | |
tree | 40d93df3f13d96e8cf66d154d2b865c35df18ec7 /net/ipv4/tcp.c | |
parent | a9c19329eccdb145a08a4a2e969d7b40c54c9bcc (diff) |
mib: add net to TCP_INC_STATS
Fortunately (almost) all the TCP code has a sock to get the net from :)
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 631133ebb20a..aa79198fb02e 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -1668,12 +1668,12 @@ void tcp_set_state(struct sock *sk, int state) | |||
1668 | switch (state) { | 1668 | switch (state) { |
1669 | case TCP_ESTABLISHED: | 1669 | case TCP_ESTABLISHED: |
1670 | if (oldstate != TCP_ESTABLISHED) | 1670 | if (oldstate != TCP_ESTABLISHED) |
1671 | TCP_INC_STATS(TCP_MIB_CURRESTAB); | 1671 | TCP_INC_STATS(sock_net(sk), TCP_MIB_CURRESTAB); |
1672 | break; | 1672 | break; |
1673 | 1673 | ||
1674 | case TCP_CLOSE: | 1674 | case TCP_CLOSE: |
1675 | if (oldstate == TCP_CLOSE_WAIT || oldstate == TCP_ESTABLISHED) | 1675 | if (oldstate == TCP_CLOSE_WAIT || oldstate == TCP_ESTABLISHED) |
1676 | TCP_INC_STATS(TCP_MIB_ESTABRESETS); | 1676 | TCP_INC_STATS(sock_net(sk), TCP_MIB_ESTABRESETS); |
1677 | 1677 | ||
1678 | sk->sk_prot->unhash(sk); | 1678 | sk->sk_prot->unhash(sk); |
1679 | if (inet_csk(sk)->icsk_bind_hash && | 1679 | if (inet_csk(sk)->icsk_bind_hash && |