• Home
  • Raw
  • Download

Lines Matching refs:newsk

1227 	struct sock *newsk;  in tcp_v6_syn_recv_sock()  local
1239 newsk = tcp_v4_syn_recv_sock(sk, skb, req, dst, in tcp_v6_syn_recv_sock()
1242 if (!newsk) in tcp_v6_syn_recv_sock()
1245 inet_sk(newsk)->pinet6 = tcp_inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1247 newinet = inet_sk(newsk); in tcp_v6_syn_recv_sock()
1248 newnp = tcp_inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1249 newtp = tcp_sk(newsk); in tcp_v6_syn_recv_sock()
1253 newnp->saddr = newsk->sk_v6_rcv_saddr; in tcp_v6_syn_recv_sock()
1255 inet_csk(newsk)->icsk_af_ops = &ipv6_mapped; in tcp_v6_syn_recv_sock()
1256 if (sk_is_mptcp(newsk)) in tcp_v6_syn_recv_sock()
1257 mptcpv6_handle_mapped(newsk, true); in tcp_v6_syn_recv_sock()
1258 newsk->sk_backlog_rcv = tcp_v4_do_rcv; in tcp_v6_syn_recv_sock()
1284 tcp_sync_mss(newsk, inet_csk(newsk)->icsk_pmtu_cookie); in tcp_v6_syn_recv_sock()
1286 return newsk; in tcp_v6_syn_recv_sock()
1300 newsk = tcp_create_openreq_child(sk, req, skb); in tcp_v6_syn_recv_sock()
1301 if (!newsk) in tcp_v6_syn_recv_sock()
1310 newsk->sk_gso_type = SKB_GSO_TCPV6; in tcp_v6_syn_recv_sock()
1311 ip6_dst_store(newsk, dst, NULL, NULL); in tcp_v6_syn_recv_sock()
1312 inet6_sk_rx_dst_set(newsk, skb); in tcp_v6_syn_recv_sock()
1314 inet_sk(newsk)->pinet6 = tcp_inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1316 newtp = tcp_sk(newsk); in tcp_v6_syn_recv_sock()
1317 newinet = inet_sk(newsk); in tcp_v6_syn_recv_sock()
1318 newnp = tcp_inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1322 newsk->sk_v6_daddr = ireq->ir_v6_rmt_addr; in tcp_v6_syn_recv_sock()
1324 newsk->sk_v6_rcv_saddr = ireq->ir_v6_loc_addr; in tcp_v6_syn_recv_sock()
1325 newsk->sk_bound_dev_if = ireq->ir_iif; in tcp_v6_syn_recv_sock()
1363 opt = ipv6_dup_options(newsk, opt); in tcp_v6_syn_recv_sock()
1366 inet_csk(newsk)->icsk_ext_hdr_len = 0; in tcp_v6_syn_recv_sock()
1368 inet_csk(newsk)->icsk_ext_hdr_len = opt->opt_nflen + in tcp_v6_syn_recv_sock()
1371 tcp_ca_openreq_child(newsk, dst); in tcp_v6_syn_recv_sock()
1373 tcp_sync_mss(newsk, dst_mtu(dst)); in tcp_v6_syn_recv_sock()
1376 tcp_initialize_rcv_mss(newsk); in tcp_v6_syn_recv_sock()
1385 key = tcp_v6_md5_do_lookup(sk, &newsk->sk_v6_daddr, l3index); in tcp_v6_syn_recv_sock()
1392 tcp_md5_do_add(newsk, (union tcp_md5_addr *)&newsk->sk_v6_daddr, in tcp_v6_syn_recv_sock()
1398 if (__inet_inherit_port(sk, newsk) < 0) { in tcp_v6_syn_recv_sock()
1399 inet_csk_prepare_forced_close(newsk); in tcp_v6_syn_recv_sock()
1400 tcp_done(newsk); in tcp_v6_syn_recv_sock()
1403 *own_req = inet_ehash_nolisten(newsk, req_to_sk(req_unhash), in tcp_v6_syn_recv_sock()
1410 newnp->pktoptions = skb_clone_and_charge_r(ireq->pktopts, newsk); in tcp_v6_syn_recv_sock()
1421 bh_unlock_sock(newsk); in tcp_v6_syn_recv_sock()
1422 sock_put(newsk); in tcp_v6_syn_recv_sock()
1423 newsk = NULL; in tcp_v6_syn_recv_sock()
1427 return newsk; in tcp_v6_syn_recv_sock()