Lines Matching refs:sk

267 void tcp_time_wait(struct sock *sk, int state, int timeo)  in tcp_time_wait()  argument
269 const struct inet_connection_sock *icsk = inet_csk(sk); in tcp_time_wait()
270 const struct tcp_sock *tp = tcp_sk(sk); in tcp_time_wait()
275 recycle_ok = tcp_remember_stamp(sk); in tcp_time_wait()
277 tw = inet_twsk_alloc(sk, &tcp_death_row, state); in tcp_time_wait()
282 struct inet_sock *inet = inet_sk(sk); in tcp_time_wait()
296 struct ipv6_pinfo *np = inet6_sk(sk); in tcp_time_wait()
298 tw->tw_v6_daddr = sk->sk_v6_daddr; in tcp_time_wait()
299 tw->tw_v6_rcv_saddr = sk->sk_v6_rcv_saddr; in tcp_time_wait()
302 tw->tw_ipv6only = sk->sk_ipv6only; in tcp_time_wait()
316 key = tp->af_specific->md5_lookup(sk, sk); in tcp_time_wait()
339 __inet_twsk_hashdance(tw, sk, &tcp_hashinfo); in tcp_time_wait()
346 NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPTIMEWAITOVERFLOW); in tcp_time_wait()
349 tcp_update_metrics(sk); in tcp_time_wait()
350 tcp_done(sk); in tcp_time_wait()
353 void tcp_twsk_destructor(struct sock *sk) in tcp_twsk_destructor() argument
356 struct tcp_timewait_sock *twsk = tcp_twsk(sk); in tcp_twsk_destructor()
409 void tcp_ca_openreq_child(struct sock *sk, const struct dst_entry *dst) in tcp_ca_openreq_child() argument
411 struct inet_connection_sock *icsk = inet_csk(sk); in tcp_ca_openreq_child()
432 tcp_assign_congestion_control(sk); in tcp_ca_openreq_child()
434 tcp_set_ca_state(sk, TCP_CA_Open); in tcp_ca_openreq_child()
444 struct sock *tcp_create_openreq_child(const struct sock *sk, in tcp_create_openreq_child() argument
448 struct sock *newsk = inet_csk_clone_lock(sk, req, GFP_ATOMIC); in tcp_create_openreq_child()
542 if (newtp->af_specific->md5_lookup(sk, newsk)) in tcp_create_openreq_child()
554 TCP_INC_STATS_BH(sock_net(sk), TCP_MIB_PASSIVEOPENS); in tcp_create_openreq_child()
571 struct sock *tcp_check_req(struct sock *sk, struct sk_buff *skb, in tcp_check_req() argument
624 if (!tcp_oow_rate_limited(sock_net(sk), skb, in tcp_check_req()
628 !inet_rtx_syn_ack(sk, req)) { in tcp_check_req()
701 return sk; in tcp_check_req()
714 req->rsk_ops->send_ack(sk, skb, req); in tcp_check_req()
716 NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_PAWSESTABREJECTED); in tcp_check_req()
735 TCP_INC_STATS_BH(sock_net(sk), TCP_MIB_ATTEMPTFAILS); in tcp_check_req()
752 return sk; in tcp_check_req()
755 if (req->num_timeout < inet_csk(sk)->icsk_accept_queue.rskq_defer_accept && in tcp_check_req()
758 NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPDEFERACCEPTDROP); in tcp_check_req()
768 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL, in tcp_check_req()
775 return inet_csk_complete_hashdance(sk, child, req, own_req); in tcp_check_req()
790 req->rsk_ops->send_reset(sk, skb); in tcp_check_req()
792 reqsk_fastopen_remove(sk, req, true); in tcp_check_req()
793 tcp_reset(sk); in tcp_check_req()
796 inet_csk_reqsk_queue_drop(sk, req); in tcp_check_req()
797 NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_EMBRYONICRSTS); in tcp_check_req()