Lines Matching refs:newtp

463 				    struct tcp_sock *newtp)
471 newtp->syn_smc = 0;
491 struct tcp_sock *newtp;
498 newtp = tcp_sk(newsk);
501 smc_check_reset_syn_req(oldtp, req, newtp);
504 newtp->pred_flags = 0;
507 newtp->rcv_wup = seq;
508 WRITE_ONCE(newtp->copied_seq, seq);
509 WRITE_ONCE(newtp->rcv_nxt, seq);
510 newtp->segs_in = 1;
513 newtp->snd_sml = newtp->snd_una = seq;
514 WRITE_ONCE(newtp->snd_nxt, seq);
515 newtp->snd_up = seq;
517 INIT_LIST_HEAD(&newtp->tsq_node);
518 INIT_LIST_HEAD(&newtp->tsorted_sent_queue);
520 tcp_init_wl(newtp, treq->rcv_isn);
522 minmax_reset(&newtp->rtt_min, tcp_jiffies32, ~0U);
525 newtp->lsndtime = tcp_jiffies32;
527 newtp->total_retrans = req->num_retrans;
530 WRITE_ONCE(newtp->write_seq, newtp->pushed_seq = treq->snt_isn + 1);
534 keepalive_time_when(newtp));
536 newtp->rx_opt.tstamp_ok = ireq->tstamp_ok;
537 newtp->rx_opt.sack_ok = ireq->sack_ok;
538 newtp->window_clamp = req->rsk_window_clamp;
539 newtp->rcv_ssthresh = req->rsk_rcv_wnd;
540 newtp->rcv_wnd = req->rsk_rcv_wnd;
541 newtp->rx_opt.wscale_ok = ireq->wscale_ok;
542 if (newtp->rx_opt.wscale_ok) {
543 newtp->rx_opt.snd_wscale = ireq->snd_wscale;
544 newtp->rx_opt.rcv_wscale = ireq->rcv_wscale;
546 newtp->rx_opt.snd_wscale = newtp->rx_opt.rcv_wscale = 0;
547 newtp->window_clamp = min(newtp->window_clamp, 65535U);
549 newtp->snd_wnd = ntohs(tcp_hdr(skb)->window) << newtp->rx_opt.snd_wscale;
550 newtp->max_window = newtp->snd_wnd;
552 if (newtp->rx_opt.tstamp_ok) {
553 newtp->rx_opt.ts_recent = READ_ONCE(req->ts_recent);
554 newtp->rx_opt.ts_recent_stamp = ktime_get_seconds();
555 newtp->tcp_header_len = sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED;
557 newtp->rx_opt.ts_recent_stamp = 0;
558 newtp->tcp_header_len = sizeof(struct tcphdr);
561 newtp->undo_marker = treq->snt_isn;
562 newtp->retrans_stamp = div_u64(treq->snt_synack,
565 newtp->tsoffset = treq->ts_off;
567 newtp->md5sig_info = NULL; /*XXX*/
569 if (skb->len >= TCP_MSS_DEFAULT + newtp->tcp_header_len)
570 newicsk->icsk_ack.last_seg_size = skb->len - newtp->tcp_header_len;
571 newtp->rx_opt.mss_clamp = req->mss;
572 tcp_ecn_openreq_child(newtp, req);
573 newtp->fastopen_req = NULL;
574 RCU_INIT_POINTER(newtp->fastopen_rsk, NULL);
576 newtp->bpf_chg_cc_inprogress = 0;