diff options
-rw-r--r-- | include/net/tcp.h | 2 | ||||
-rw-r--r-- | net/ipv4/tcp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 8a2cd076be82..92d87691aa61 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -268,7 +268,7 @@ extern struct proto tcp_prot; | |||
268 | DECLARE_SNMP_STAT(struct tcp_mib, tcp_statistics); | 268 | DECLARE_SNMP_STAT(struct tcp_mib, tcp_statistics); |
269 | #define TCP_INC_STATS(net, field) do { (void)net; SNMP_INC_STATS(tcp_statistics, field); } while (0) | 269 | #define TCP_INC_STATS(net, field) do { (void)net; SNMP_INC_STATS(tcp_statistics, field); } while (0) |
270 | #define TCP_INC_STATS_BH(net, field) do { (void)net; SNMP_INC_STATS_BH(tcp_statistics, field); } while (0) | 270 | #define TCP_INC_STATS_BH(net, field) do { (void)net; SNMP_INC_STATS_BH(tcp_statistics, field); } while (0) |
271 | #define TCP_DEC_STATS(field) SNMP_DEC_STATS(tcp_statistics, field) | 271 | #define TCP_DEC_STATS(net, field) do { (void)net; SNMP_DEC_STATS(tcp_statistics, field); } while (0) |
272 | #define TCP_ADD_STATS_USER(field, val) SNMP_ADD_STATS_USER(tcp_statistics, field, val) | 272 | #define TCP_ADD_STATS_USER(field, val) SNMP_ADD_STATS_USER(tcp_statistics, field, val) |
273 | 273 | ||
274 | extern void tcp_v4_err(struct sk_buff *skb, u32); | 274 | extern void tcp_v4_err(struct sk_buff *skb, u32); |
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index f742f84026b5..525dcf534153 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -1682,7 +1682,7 @@ void tcp_set_state(struct sock *sk, int state) | |||
1682 | /* fall through */ | 1682 | /* fall through */ |
1683 | default: | 1683 | default: |
1684 | if (oldstate==TCP_ESTABLISHED) | 1684 | if (oldstate==TCP_ESTABLISHED) |
1685 | TCP_DEC_STATS(TCP_MIB_CURRESTAB); | 1685 | TCP_DEC_STATS(sock_net(sk), TCP_MIB_CURRESTAB); |
1686 | } | 1686 | } |
1687 | 1687 | ||
1688 | /* Change state AFTER socket is unhashed to avoid closed | 1688 | /* Change state AFTER socket is unhashed to avoid closed |