Lines Matching refs:newsk

1004 	struct sock *newsk;  in tcp_v6_syn_recv_sock()  local
1015 newsk = tcp_v4_syn_recv_sock(sk, skb, req, dst); in tcp_v6_syn_recv_sock()
1017 if (!newsk) in tcp_v6_syn_recv_sock()
1020 newtcp6sk = (struct tcp6_sock *)newsk; in tcp_v6_syn_recv_sock()
1021 inet_sk(newsk)->pinet6 = &newtcp6sk->inet6; in tcp_v6_syn_recv_sock()
1023 newinet = inet_sk(newsk); in tcp_v6_syn_recv_sock()
1024 newnp = inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1025 newtp = tcp_sk(newsk); in tcp_v6_syn_recv_sock()
1029 newnp->saddr = newsk->sk_v6_rcv_saddr; in tcp_v6_syn_recv_sock()
1031 inet_csk(newsk)->icsk_af_ops = &ipv6_mapped; in tcp_v6_syn_recv_sock()
1032 newsk->sk_backlog_rcv = tcp_v4_do_rcv; in tcp_v6_syn_recv_sock()
1057 tcp_sync_mss(newsk, inet_csk(newsk)->icsk_pmtu_cookie); in tcp_v6_syn_recv_sock()
1059 return newsk; in tcp_v6_syn_recv_sock()
1073 newsk = tcp_create_openreq_child(sk, req, skb); in tcp_v6_syn_recv_sock()
1074 if (!newsk) in tcp_v6_syn_recv_sock()
1083 newsk->sk_gso_type = SKB_GSO_TCPV6; in tcp_v6_syn_recv_sock()
1084 __ip6_dst_store(newsk, dst, NULL, NULL); in tcp_v6_syn_recv_sock()
1085 inet6_sk_rx_dst_set(newsk, skb); in tcp_v6_syn_recv_sock()
1087 newtcp6sk = (struct tcp6_sock *)newsk; in tcp_v6_syn_recv_sock()
1088 inet_sk(newsk)->pinet6 = &newtcp6sk->inet6; in tcp_v6_syn_recv_sock()
1090 newtp = tcp_sk(newsk); in tcp_v6_syn_recv_sock()
1091 newinet = inet_sk(newsk); in tcp_v6_syn_recv_sock()
1092 newnp = inet6_sk(newsk); in tcp_v6_syn_recv_sock()
1096 newsk->sk_v6_daddr = ireq->ir_v6_rmt_addr; in tcp_v6_syn_recv_sock()
1098 newsk->sk_v6_rcv_saddr = ireq->ir_v6_loc_addr; in tcp_v6_syn_recv_sock()
1099 newsk->sk_bound_dev_if = ireq->ir_iif; in tcp_v6_syn_recv_sock()
1101 ip6_set_txhash(newsk); in tcp_v6_syn_recv_sock()
1122 skb_set_owner_r(newnp->pktoptions, newsk); in tcp_v6_syn_recv_sock()
1139 opt = ipv6_dup_options(newsk, opt); in tcp_v6_syn_recv_sock()
1142 inet_csk(newsk)->icsk_ext_hdr_len = 0; in tcp_v6_syn_recv_sock()
1144 inet_csk(newsk)->icsk_ext_hdr_len = opt->opt_nflen + in tcp_v6_syn_recv_sock()
1147 tcp_ca_openreq_child(newsk, dst); in tcp_v6_syn_recv_sock()
1149 tcp_sync_mss(newsk, dst_mtu(dst)); in tcp_v6_syn_recv_sock()
1155 tcp_initialize_rcv_mss(newsk); in tcp_v6_syn_recv_sock()
1162 key = tcp_v6_md5_do_lookup(sk, &newsk->sk_v6_daddr); in tcp_v6_syn_recv_sock()
1169 tcp_md5_do_add(newsk, (union tcp_md5_addr *)&newsk->sk_v6_daddr, in tcp_v6_syn_recv_sock()
1175 if (__inet_inherit_port(sk, newsk) < 0) { in tcp_v6_syn_recv_sock()
1176 inet_csk_prepare_forced_close(newsk); in tcp_v6_syn_recv_sock()
1177 tcp_done(newsk); in tcp_v6_syn_recv_sock()
1180 __inet_hash(newsk, NULL); in tcp_v6_syn_recv_sock()
1182 return newsk; in tcp_v6_syn_recv_sock()