aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/net/tcp.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 07f724e02f84..e79803353c83 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -921,21 +921,7 @@ static inline void tcp_set_state(struct sock *sk, int state)
921#endif 921#endif
922} 922}
923 923
924static inline void tcp_done(struct sock *sk) 924extern void tcp_done(struct sock *sk);
925{
926 if(sk->sk_state == TCP_SYN_SENT || sk->sk_state == TCP_SYN_RECV)
927 TCP_INC_STATS_BH(TCP_MIB_ATTEMPTFAILS);
928
929 tcp_set_state(sk, TCP_CLOSE);
930 tcp_clear_xmit_timers(sk);
931
932 sk->sk_shutdown = SHUTDOWN_MASK;
933
934 if (!sock_flag(sk, SOCK_DEAD))
935 sk->sk_state_change(sk);
936 else
937 inet_csk_destroy_sock(sk);
938}
939 925
940static inline void tcp_sack_reset(struct tcp_options_received *rx_opt) 926static inline void tcp_sack_reset(struct tcp_options_received *rx_opt)
941{ 927{