tcp.c (6aef70a851ac77967992340faaff33f44598f60a) | tcp.c (90bbcc608369a1b46089b0f5aa22b8ea31ffa12e) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Implementation of the Transmission Control Protocol(TCP). 7 * 8 * Authors: Ross Biro --- 3077 unchanged lines hidden (view full) --- 3086 3087#endif 3088 3089void tcp_done(struct sock *sk) 3090{ 3091 struct request_sock *req = tcp_sk(sk)->fastopen_rsk; 3092 3093 if (sk->sk_state == TCP_SYN_SENT || sk->sk_state == TCP_SYN_RECV) | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Implementation of the Transmission Control Protocol(TCP). 7 * 8 * Authors: Ross Biro --- 3077 unchanged lines hidden (view full) --- 3086 3087#endif 3088 3089void tcp_done(struct sock *sk) 3090{ 3091 struct request_sock *req = tcp_sk(sk)->fastopen_rsk; 3092 3093 if (sk->sk_state == TCP_SYN_SENT || sk->sk_state == TCP_SYN_RECV) |
3094 TCP_INC_STATS_BH(sock_net(sk), TCP_MIB_ATTEMPTFAILS); | 3094 __TCP_INC_STATS(sock_net(sk), TCP_MIB_ATTEMPTFAILS); |
3095 3096 tcp_set_state(sk, TCP_CLOSE); 3097 tcp_clear_xmit_timers(sk); 3098 if (req) 3099 reqsk_fastopen_remove(sk, req, false); 3100 3101 sk->sk_shutdown = SHUTDOWN_MASK; 3102 --- 160 unchanged lines hidden --- | 3095 3096 tcp_set_state(sk, TCP_CLOSE); 3097 tcp_clear_xmit_timers(sk); 3098 if (req) 3099 reqsk_fastopen_remove(sk, req, false); 3100 3101 sk->sk_shutdown = SHUTDOWN_MASK; 3102 --- 160 unchanged lines hidden --- |