Lines Matching refs:newtp
454 struct tcp_sock *newtp = tcp_sk(newsk); in tcp_create_openreq_child() local
457 newtp->pred_flags = 0; in tcp_create_openreq_child()
459 newtp->rcv_wup = newtp->copied_seq = in tcp_create_openreq_child()
460 newtp->rcv_nxt = treq->rcv_isn + 1; in tcp_create_openreq_child()
461 newtp->segs_in = 1; in tcp_create_openreq_child()
463 newtp->snd_sml = newtp->snd_una = in tcp_create_openreq_child()
464 newtp->snd_nxt = newtp->snd_up = treq->snt_isn + 1; in tcp_create_openreq_child()
466 tcp_prequeue_init(newtp); in tcp_create_openreq_child()
467 INIT_LIST_HEAD(&newtp->tsq_node); in tcp_create_openreq_child()
469 tcp_init_wl(newtp, treq->rcv_isn); in tcp_create_openreq_child()
471 newtp->srtt_us = 0; in tcp_create_openreq_child()
472 newtp->mdev_us = jiffies_to_usecs(TCP_TIMEOUT_INIT); in tcp_create_openreq_child()
473 newtp->rtt_min[0].rtt = ~0U; in tcp_create_openreq_child()
476 newtp->packets_out = 0; in tcp_create_openreq_child()
477 newtp->retrans_out = 0; in tcp_create_openreq_child()
478 newtp->sacked_out = 0; in tcp_create_openreq_child()
479 newtp->fackets_out = 0; in tcp_create_openreq_child()
480 newtp->snd_ssthresh = TCP_INFINITE_SSTHRESH; in tcp_create_openreq_child()
481 tcp_enable_early_retrans(newtp); in tcp_create_openreq_child()
482 newtp->tlp_high_seq = 0; in tcp_create_openreq_child()
483 newtp->lsndtime = treq->snt_synack.stamp_jiffies; in tcp_create_openreq_child()
485 newtp->last_oow_ack_time = 0; in tcp_create_openreq_child()
486 newtp->total_retrans = req->num_retrans; in tcp_create_openreq_child()
493 newtp->snd_cwnd = TCP_INIT_CWND; in tcp_create_openreq_child()
494 newtp->snd_cwnd_cnt = 0; in tcp_create_openreq_child()
497 __skb_queue_head_init(&newtp->out_of_order_queue); in tcp_create_openreq_child()
498 newtp->write_seq = newtp->pushed_seq = treq->snt_isn + 1; in tcp_create_openreq_child()
500 newtp->rx_opt.saw_tstamp = 0; in tcp_create_openreq_child()
502 newtp->rx_opt.dsack = 0; in tcp_create_openreq_child()
503 newtp->rx_opt.num_sacks = 0; in tcp_create_openreq_child()
505 newtp->urg_data = 0; in tcp_create_openreq_child()
509 keepalive_time_when(newtp)); in tcp_create_openreq_child()
511 newtp->rx_opt.tstamp_ok = ireq->tstamp_ok; in tcp_create_openreq_child()
512 if ((newtp->rx_opt.sack_ok = ireq->sack_ok) != 0) { in tcp_create_openreq_child()
514 tcp_enable_fack(newtp); in tcp_create_openreq_child()
516 newtp->window_clamp = req->rsk_window_clamp; in tcp_create_openreq_child()
517 newtp->rcv_ssthresh = req->rsk_rcv_wnd; in tcp_create_openreq_child()
518 newtp->rcv_wnd = req->rsk_rcv_wnd; in tcp_create_openreq_child()
519 newtp->rx_opt.wscale_ok = ireq->wscale_ok; in tcp_create_openreq_child()
520 if (newtp->rx_opt.wscale_ok) { in tcp_create_openreq_child()
521 newtp->rx_opt.snd_wscale = ireq->snd_wscale; in tcp_create_openreq_child()
522 newtp->rx_opt.rcv_wscale = ireq->rcv_wscale; in tcp_create_openreq_child()
524 newtp->rx_opt.snd_wscale = newtp->rx_opt.rcv_wscale = 0; in tcp_create_openreq_child()
525 newtp->window_clamp = min(newtp->window_clamp, 65535U); in tcp_create_openreq_child()
527 newtp->snd_wnd = (ntohs(tcp_hdr(skb)->window) << in tcp_create_openreq_child()
528 newtp->rx_opt.snd_wscale); in tcp_create_openreq_child()
529 newtp->max_window = newtp->snd_wnd; in tcp_create_openreq_child()
531 if (newtp->rx_opt.tstamp_ok) { in tcp_create_openreq_child()
532 newtp->rx_opt.ts_recent = req->ts_recent; in tcp_create_openreq_child()
533 newtp->rx_opt.ts_recent_stamp = get_seconds(); in tcp_create_openreq_child()
534 newtp->tcp_header_len = sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_create_openreq_child()
536 newtp->rx_opt.ts_recent_stamp = 0; in tcp_create_openreq_child()
537 newtp->tcp_header_len = sizeof(struct tcphdr); in tcp_create_openreq_child()
539 newtp->tsoffset = 0; in tcp_create_openreq_child()
541 newtp->md5sig_info = NULL; /*XXX*/ in tcp_create_openreq_child()
542 if (newtp->af_specific->md5_lookup(sk, newsk)) in tcp_create_openreq_child()
543 newtp->tcp_header_len += TCPOLEN_MD5SIG_ALIGNED; in tcp_create_openreq_child()
545 if (skb->len >= TCP_MSS_DEFAULT + newtp->tcp_header_len) in tcp_create_openreq_child()
546 newicsk->icsk_ack.last_seg_size = skb->len - newtp->tcp_header_len; in tcp_create_openreq_child()
547 newtp->rx_opt.mss_clamp = req->mss; in tcp_create_openreq_child()
548 tcp_ecn_openreq_child(newtp, req); in tcp_create_openreq_child()
549 newtp->fastopen_rsk = NULL; in tcp_create_openreq_child()
550 newtp->syn_data_acked = 0; in tcp_create_openreq_child()
551 newtp->rack.mstamp.v64 = 0; in tcp_create_openreq_child()
552 newtp->rack.advanced = 0; in tcp_create_openreq_child()