Lines Matching refs:newsk
1655 struct sock *newsk; in tcp_v4_syn_recv_sock() local
1664 newsk = tcp_create_openreq_child(sk, req, skb); in tcp_v4_syn_recv_sock()
1665 if (!newsk) in tcp_v4_syn_recv_sock()
1668 newsk->sk_gso_type = SKB_GSO_TCPV4; in tcp_v4_syn_recv_sock()
1669 inet_sk_rx_dst_set(newsk, skb); in tcp_v4_syn_recv_sock()
1671 newtp = tcp_sk(newsk); in tcp_v4_syn_recv_sock()
1672 newinet = inet_sk(newsk); in tcp_v4_syn_recv_sock()
1683 inet_csk(newsk)->icsk_ext_hdr_len = 0; in tcp_v4_syn_recv_sock()
1685 inet_csk(newsk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_v4_syn_recv_sock()
1689 dst = inet_csk_route_child_sock(sk, newsk, req); in tcp_v4_syn_recv_sock()
1695 sk_setup_caps(newsk, dst); in tcp_v4_syn_recv_sock()
1697 tcp_mtup_init(newsk); in tcp_v4_syn_recv_sock()
1698 tcp_sync_mss(newsk, dst_mtu(dst)); in tcp_v4_syn_recv_sock()
1704 tcp_initialize_rcv_mss(newsk); in tcp_v4_syn_recv_sock()
1705 tcp_synack_rtt_meas(newsk, req); in tcp_v4_syn_recv_sock()
1719 tcp_md5_do_add(newsk, (union tcp_md5_addr *)&newinet->inet_daddr, in tcp_v4_syn_recv_sock()
1721 sk_nocaps_add(newsk, NETIF_F_GSO_MASK); in tcp_v4_syn_recv_sock()
1725 if (__inet_inherit_port(sk, newsk) < 0) in tcp_v4_syn_recv_sock()
1727 __inet_hash_nolisten(newsk, NULL); in tcp_v4_syn_recv_sock()
1729 return newsk; in tcp_v4_syn_recv_sock()
1739 inet_csk_prepare_forced_close(newsk); in tcp_v4_syn_recv_sock()
1740 tcp_done(newsk); in tcp_v4_syn_recv_sock()