Lines Matching refs:newsk
1226 struct sock *newsk; in tcp_v6_syn_recv_sock() local
1238 newsk = tcp_v4_syn_recv_sock(sk, skb, req, dst, in tcp_v6_syn_recv_sock()
1241 if (!newsk) in tcp_v6_syn_recv_sock()
1244 inet_sk(newsk)->pinet6 = tcp_inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1246 newinet = inet_sk(newsk); in tcp_v6_syn_recv_sock()
1247 newnp = tcp_inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1248 newtp = tcp_sk(newsk); in tcp_v6_syn_recv_sock()
1252 newnp->saddr = newsk->sk_v6_rcv_saddr; in tcp_v6_syn_recv_sock()
1254 inet_csk(newsk)->icsk_af_ops = &ipv6_mapped; in tcp_v6_syn_recv_sock()
1255 if (sk_is_mptcp(newsk)) in tcp_v6_syn_recv_sock()
1256 mptcpv6_handle_mapped(newsk, true); in tcp_v6_syn_recv_sock()
1257 newsk->sk_backlog_rcv = tcp_v4_do_rcv; in tcp_v6_syn_recv_sock()
1283 tcp_sync_mss(newsk, inet_csk(newsk)->icsk_pmtu_cookie); in tcp_v6_syn_recv_sock()
1285 return newsk; in tcp_v6_syn_recv_sock()
1299 newsk = tcp_create_openreq_child(sk, req, skb); in tcp_v6_syn_recv_sock()
1300 if (!newsk) in tcp_v6_syn_recv_sock()
1309 newsk->sk_gso_type = SKB_GSO_TCPV6; in tcp_v6_syn_recv_sock()
1310 ip6_dst_store(newsk, dst, NULL, NULL); in tcp_v6_syn_recv_sock()
1311 inet6_sk_rx_dst_set(newsk, skb); in tcp_v6_syn_recv_sock()
1313 inet_sk(newsk)->pinet6 = tcp_inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1315 newtp = tcp_sk(newsk); in tcp_v6_syn_recv_sock()
1316 newinet = inet_sk(newsk); in tcp_v6_syn_recv_sock()
1317 newnp = tcp_inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1321 newsk->sk_v6_daddr = ireq->ir_v6_rmt_addr; in tcp_v6_syn_recv_sock()
1323 newsk->sk_v6_rcv_saddr = ireq->ir_v6_loc_addr; in tcp_v6_syn_recv_sock()
1324 newsk->sk_bound_dev_if = ireq->ir_iif; in tcp_v6_syn_recv_sock()
1362 opt = ipv6_dup_options(newsk, opt); in tcp_v6_syn_recv_sock()
1365 inet_csk(newsk)->icsk_ext_hdr_len = 0; in tcp_v6_syn_recv_sock()
1367 inet_csk(newsk)->icsk_ext_hdr_len = opt->opt_nflen + in tcp_v6_syn_recv_sock()
1370 tcp_ca_openreq_child(newsk, dst); in tcp_v6_syn_recv_sock()
1372 tcp_sync_mss(newsk, dst_mtu(dst)); in tcp_v6_syn_recv_sock()
1375 tcp_initialize_rcv_mss(newsk); in tcp_v6_syn_recv_sock()
1384 key = tcp_v6_md5_do_lookup(sk, &newsk->sk_v6_daddr, l3index); in tcp_v6_syn_recv_sock()
1391 tcp_md5_do_add(newsk, (union tcp_md5_addr *)&newsk->sk_v6_daddr, in tcp_v6_syn_recv_sock()
1397 if (__inet_inherit_port(sk, newsk) < 0) { in tcp_v6_syn_recv_sock()
1398 inet_csk_prepare_forced_close(newsk); in tcp_v6_syn_recv_sock()
1399 tcp_done(newsk); in tcp_v6_syn_recv_sock()
1402 *own_req = inet_ehash_nolisten(newsk, req_to_sk(req_unhash), in tcp_v6_syn_recv_sock()
1415 skb_set_owner_r(newnp->pktoptions, newsk); in tcp_v6_syn_recv_sock()
1423 bh_unlock_sock(newsk); in tcp_v6_syn_recv_sock()
1424 sock_put(newsk); in tcp_v6_syn_recv_sock()
1425 newsk = NULL; in tcp_v6_syn_recv_sock()
1429 return newsk; in tcp_v6_syn_recv_sock()