Lines Matching refs:newsk

1255 	struct sock *newsk;  in tcp_v4_syn_recv_sock()  local
1264 newsk = tcp_create_openreq_child(sk, req, skb); in tcp_v4_syn_recv_sock()
1265 if (!newsk) in tcp_v4_syn_recv_sock()
1268 newsk->sk_gso_type = SKB_GSO_TCPV4; in tcp_v4_syn_recv_sock()
1269 inet_sk_rx_dst_set(newsk, skb); in tcp_v4_syn_recv_sock()
1271 newtp = tcp_sk(newsk); in tcp_v4_syn_recv_sock()
1272 newinet = inet_sk(newsk); in tcp_v4_syn_recv_sock()
1274 sk_daddr_set(newsk, ireq->ir_rmt_addr); in tcp_v4_syn_recv_sock()
1275 sk_rcv_saddr_set(newsk, ireq->ir_loc_addr); in tcp_v4_syn_recv_sock()
1283 inet_csk(newsk)->icsk_ext_hdr_len = 0; in tcp_v4_syn_recv_sock()
1284 inet_set_txhash(newsk); in tcp_v4_syn_recv_sock()
1286 inet_csk(newsk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_v4_syn_recv_sock()
1290 dst = inet_csk_route_child_sock(sk, newsk, req); in tcp_v4_syn_recv_sock()
1296 sk_setup_caps(newsk, dst); in tcp_v4_syn_recv_sock()
1298 tcp_ca_openreq_child(newsk, dst); in tcp_v4_syn_recv_sock()
1300 tcp_sync_mss(newsk, dst_mtu(dst)); in tcp_v4_syn_recv_sock()
1306 tcp_initialize_rcv_mss(newsk); in tcp_v4_syn_recv_sock()
1319 tcp_md5_do_add(newsk, (union tcp_md5_addr *)&newinet->inet_daddr, in tcp_v4_syn_recv_sock()
1321 sk_nocaps_add(newsk, NETIF_F_GSO_MASK); in tcp_v4_syn_recv_sock()
1325 if (__inet_inherit_port(sk, newsk) < 0) in tcp_v4_syn_recv_sock()
1327 __inet_hash_nolisten(newsk, NULL); in tcp_v4_syn_recv_sock()
1329 return newsk; in tcp_v4_syn_recv_sock()
1339 inet_csk_prepare_forced_close(newsk); in tcp_v4_syn_recv_sock()
1340 tcp_done(newsk); in tcp_v4_syn_recv_sock()