Lines Matching refs:newsk
1034 struct sock *newsk; in tcp_v6_syn_recv_sock() local
1045 newsk = tcp_v4_syn_recv_sock(sk, skb, req, dst, in tcp_v6_syn_recv_sock()
1048 if (!newsk) in tcp_v6_syn_recv_sock()
1051 newtcp6sk = (struct tcp6_sock *)newsk; in tcp_v6_syn_recv_sock()
1052 inet_sk(newsk)->pinet6 = &newtcp6sk->inet6; in tcp_v6_syn_recv_sock()
1054 newinet = inet_sk(newsk); in tcp_v6_syn_recv_sock()
1055 newnp = inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1056 newtp = tcp_sk(newsk); in tcp_v6_syn_recv_sock()
1060 newnp->saddr = newsk->sk_v6_rcv_saddr; in tcp_v6_syn_recv_sock()
1062 inet_csk(newsk)->icsk_af_ops = &ipv6_mapped; in tcp_v6_syn_recv_sock()
1063 newsk->sk_backlog_rcv = tcp_v4_do_rcv; in tcp_v6_syn_recv_sock()
1089 tcp_sync_mss(newsk, inet_csk(newsk)->icsk_pmtu_cookie); in tcp_v6_syn_recv_sock()
1091 return newsk; in tcp_v6_syn_recv_sock()
1105 newsk = tcp_create_openreq_child(sk, req, skb); in tcp_v6_syn_recv_sock()
1106 if (!newsk) in tcp_v6_syn_recv_sock()
1115 newsk->sk_gso_type = SKB_GSO_TCPV6; in tcp_v6_syn_recv_sock()
1116 ip6_dst_store(newsk, dst, NULL, NULL); in tcp_v6_syn_recv_sock()
1117 inet6_sk_rx_dst_set(newsk, skb); in tcp_v6_syn_recv_sock()
1119 newtcp6sk = (struct tcp6_sock *)newsk; in tcp_v6_syn_recv_sock()
1120 inet_sk(newsk)->pinet6 = &newtcp6sk->inet6; in tcp_v6_syn_recv_sock()
1122 newtp = tcp_sk(newsk); in tcp_v6_syn_recv_sock()
1123 newinet = inet_sk(newsk); in tcp_v6_syn_recv_sock()
1124 newnp = inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1128 newsk->sk_v6_daddr = ireq->ir_v6_rmt_addr; in tcp_v6_syn_recv_sock()
1130 newsk->sk_v6_rcv_saddr = ireq->ir_v6_loc_addr; in tcp_v6_syn_recv_sock()
1131 newsk->sk_bound_dev_if = ireq->ir_iif; in tcp_v6_syn_recv_sock()
1161 opt = ipv6_dup_options(newsk, opt); in tcp_v6_syn_recv_sock()
1164 inet_csk(newsk)->icsk_ext_hdr_len = 0; in tcp_v6_syn_recv_sock()
1166 inet_csk(newsk)->icsk_ext_hdr_len = opt->opt_nflen + in tcp_v6_syn_recv_sock()
1169 tcp_ca_openreq_child(newsk, dst); in tcp_v6_syn_recv_sock()
1171 tcp_sync_mss(newsk, dst_mtu(dst)); in tcp_v6_syn_recv_sock()
1177 tcp_initialize_rcv_mss(newsk); in tcp_v6_syn_recv_sock()
1184 key = tcp_v6_md5_do_lookup(sk, &newsk->sk_v6_daddr); in tcp_v6_syn_recv_sock()
1191 tcp_md5_do_add(newsk, (union tcp_md5_addr *)&newsk->sk_v6_daddr, in tcp_v6_syn_recv_sock()
1197 if (__inet_inherit_port(sk, newsk) < 0) { in tcp_v6_syn_recv_sock()
1198 inet_csk_prepare_forced_close(newsk); in tcp_v6_syn_recv_sock()
1199 tcp_done(newsk); in tcp_v6_syn_recv_sock()
1202 *own_req = inet_ehash_nolisten(newsk, req_to_sk(req_unhash)); in tcp_v6_syn_recv_sock()
1214 skb_set_owner_r(newnp->pktoptions, newsk); in tcp_v6_syn_recv_sock()
1219 return newsk; in tcp_v6_syn_recv_sock()