Lines Matching refs:newsk
984 struct sock *newsk; in tcp_v6_syn_recv_sock() local
995 newsk = tcp_v4_syn_recv_sock(sk, skb, req, dst, in tcp_v6_syn_recv_sock()
998 if (!newsk) in tcp_v6_syn_recv_sock()
1001 newtcp6sk = (struct tcp6_sock *)newsk; in tcp_v6_syn_recv_sock()
1002 inet_sk(newsk)->pinet6 = &newtcp6sk->inet6; in tcp_v6_syn_recv_sock()
1004 newinet = inet_sk(newsk); in tcp_v6_syn_recv_sock()
1005 newnp = inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1006 newtp = tcp_sk(newsk); in tcp_v6_syn_recv_sock()
1010 newnp->saddr = newsk->sk_v6_rcv_saddr; in tcp_v6_syn_recv_sock()
1012 inet_csk(newsk)->icsk_af_ops = &ipv6_mapped; in tcp_v6_syn_recv_sock()
1013 newsk->sk_backlog_rcv = tcp_v4_do_rcv; in tcp_v6_syn_recv_sock()
1038 tcp_sync_mss(newsk, inet_csk(newsk)->icsk_pmtu_cookie); in tcp_v6_syn_recv_sock()
1040 return newsk; in tcp_v6_syn_recv_sock()
1054 newsk = tcp_create_openreq_child(sk, req, skb); in tcp_v6_syn_recv_sock()
1055 if (!newsk) in tcp_v6_syn_recv_sock()
1064 newsk->sk_gso_type = SKB_GSO_TCPV6; in tcp_v6_syn_recv_sock()
1065 ip6_dst_store(newsk, dst, NULL, NULL); in tcp_v6_syn_recv_sock()
1066 inet6_sk_rx_dst_set(newsk, skb); in tcp_v6_syn_recv_sock()
1068 newtcp6sk = (struct tcp6_sock *)newsk; in tcp_v6_syn_recv_sock()
1069 inet_sk(newsk)->pinet6 = &newtcp6sk->inet6; in tcp_v6_syn_recv_sock()
1071 newtp = tcp_sk(newsk); in tcp_v6_syn_recv_sock()
1072 newinet = inet_sk(newsk); in tcp_v6_syn_recv_sock()
1073 newnp = inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1077 newsk->sk_v6_daddr = ireq->ir_v6_rmt_addr; in tcp_v6_syn_recv_sock()
1079 newsk->sk_v6_rcv_saddr = ireq->ir_v6_loc_addr; in tcp_v6_syn_recv_sock()
1080 newsk->sk_bound_dev_if = ireq->ir_iif; in tcp_v6_syn_recv_sock()
1109 opt = ipv6_dup_options(newsk, opt); in tcp_v6_syn_recv_sock()
1112 inet_csk(newsk)->icsk_ext_hdr_len = 0; in tcp_v6_syn_recv_sock()
1114 inet_csk(newsk)->icsk_ext_hdr_len = opt->opt_nflen + in tcp_v6_syn_recv_sock()
1117 tcp_ca_openreq_child(newsk, dst); in tcp_v6_syn_recv_sock()
1119 tcp_sync_mss(newsk, dst_mtu(dst)); in tcp_v6_syn_recv_sock()
1125 tcp_initialize_rcv_mss(newsk); in tcp_v6_syn_recv_sock()
1132 key = tcp_v6_md5_do_lookup(sk, &newsk->sk_v6_daddr); in tcp_v6_syn_recv_sock()
1139 tcp_md5_do_add(newsk, (union tcp_md5_addr *)&newsk->sk_v6_daddr, in tcp_v6_syn_recv_sock()
1145 if (__inet_inherit_port(sk, newsk) < 0) { in tcp_v6_syn_recv_sock()
1146 inet_csk_prepare_forced_close(newsk); in tcp_v6_syn_recv_sock()
1147 tcp_done(newsk); in tcp_v6_syn_recv_sock()
1150 *own_req = inet_ehash_nolisten(newsk, req_to_sk(req_unhash)); in tcp_v6_syn_recv_sock()
1161 skb_set_owner_r(newnp->pktoptions, newsk); in tcp_v6_syn_recv_sock()
1165 return newsk; in tcp_v6_syn_recv_sock()