Lines Matching refs:newsk
1300 struct sock *newsk;
1309 newsk = tcp_create_openreq_child(sk, req, skb);
1310 if (!newsk)
1313 newsk->sk_gso_type = SKB_GSO_TCPV4;
1314 inet_sk_rx_dst_set(newsk, skb);
1316 newtp = tcp_sk(newsk);
1317 newinet = inet_sk(newsk);
1328 inet_csk(newsk)->icsk_ext_hdr_len = 0;
1329 inet_set_txhash(newsk);
1331 inet_csk(newsk)->icsk_ext_hdr_len = inet_opt->opt.optlen;
1335 dst = inet_csk_route_child_sock(sk, newsk, req);
1341 sk_setup_caps(newsk, dst);
1343 tcp_sync_mss(newsk, dst_mtu(dst));
1349 tcp_initialize_rcv_mss(newsk);
1358 * on the newsk structure. If we fail to get
1362 tcp_md5_do_add(newsk, (union tcp_md5_addr *)&newinet->inet_daddr,
1364 sk_nocaps_add(newsk, NETIF_F_GSO_MASK);
1368 if (__inet_inherit_port(sk, newsk) < 0)
1370 __inet_hash_nolisten(newsk, NULL);
1372 return newsk;
1382 inet_csk_prepare_forced_close(newsk);
1383 tcp_done(newsk);