Lines Matching refs:newsk
1750 struct sock *newsk; local
1761 newsk = tcp_create_openreq_child(sk, req, skb);
1762 if (!newsk)
1765 newsk->sk_gso_type = SKB_GSO_TCPV4;
1766 inet_sk_rx_dst_set(newsk, skb);
1768 newtp = tcp_sk(newsk);
1769 newinet = inet_sk(newsk);
1771 sk_daddr_set(newsk, ireq->ir_rmt_addr);
1772 sk_rcv_saddr_set(newsk, ireq->ir_loc_addr);
1773 newsk->sk_bound_dev_if = ireq->ir_iif;
1780 inet_csk(newsk)->icsk_ext_hdr_len = 0;
1782 inet_csk(newsk)->icsk_ext_hdr_len = inet_opt->opt.optlen;
1792 dst = inet_csk_route_child_sock(sk, newsk, req);
1798 sk_setup_caps(newsk, dst);
1800 tcp_ca_openreq_child(newsk, dst);
1802 tcp_sync_mss(newsk, dst_mtu(dst));
1805 tcp_initialize_rcv_mss(newsk);
1813 if (tcp_md5_key_copy(newsk, addr, AF_INET, 32, l3index, key))
1815 sk_gso_disable(newsk);
1819 if (tcp_ao_copy_all_matching(sk, newsk, req, skb, AF_INET))
1823 if (__inet_inherit_port(sk, newsk) < 0)
1825 *own_req = inet_ehash_nolisten(newsk, req_to_sk(req_unhash),
1837 bh_unlock_sock(newsk);
1838 sock_put(newsk);
1839 newsk = NULL;
1842 return newsk;
1853 inet_csk_prepare_forced_close(newsk);
1854 tcp_done(newsk);