Lines Matching refs:newsk

1264 	struct sock *newsk;  in tcp_v4_syn_recv_sock()  local
1273 newsk = tcp_create_openreq_child(sk, req, skb); in tcp_v4_syn_recv_sock()
1274 if (!newsk) in tcp_v4_syn_recv_sock()
1277 newsk->sk_gso_type = SKB_GSO_TCPV4; in tcp_v4_syn_recv_sock()
1278 inet_sk_rx_dst_set(newsk, skb); in tcp_v4_syn_recv_sock()
1280 newtp = tcp_sk(newsk); in tcp_v4_syn_recv_sock()
1281 newinet = inet_sk(newsk); in tcp_v4_syn_recv_sock()
1283 sk_daddr_set(newsk, ireq->ir_rmt_addr); in tcp_v4_syn_recv_sock()
1284 sk_rcv_saddr_set(newsk, ireq->ir_loc_addr); in tcp_v4_syn_recv_sock()
1292 inet_csk(newsk)->icsk_ext_hdr_len = 0; in tcp_v4_syn_recv_sock()
1294 inet_csk(newsk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_v4_syn_recv_sock()
1298 dst = inet_csk_route_child_sock(sk, newsk, req); in tcp_v4_syn_recv_sock()
1304 sk_setup_caps(newsk, dst); in tcp_v4_syn_recv_sock()
1306 tcp_ca_openreq_child(newsk, dst); in tcp_v4_syn_recv_sock()
1308 tcp_sync_mss(newsk, dst_mtu(dst)); in tcp_v4_syn_recv_sock()
1314 tcp_initialize_rcv_mss(newsk); in tcp_v4_syn_recv_sock()
1327 tcp_md5_do_add(newsk, (union tcp_md5_addr *)&newinet->inet_daddr, in tcp_v4_syn_recv_sock()
1329 sk_nocaps_add(newsk, NETIF_F_GSO_MASK); in tcp_v4_syn_recv_sock()
1333 if (__inet_inherit_port(sk, newsk) < 0) in tcp_v4_syn_recv_sock()
1335 *own_req = inet_ehash_nolisten(newsk, req_to_sk(req_unhash)); in tcp_v4_syn_recv_sock()
1339 return newsk; in tcp_v4_syn_recv_sock()
1349 inet_csk_prepare_forced_close(newsk); in tcp_v4_syn_recv_sock()
1350 tcp_done(newsk); in tcp_v4_syn_recv_sock()