Lines Matching refs:newtp

446 		struct tcp_sock *newtp = tcp_sk(newsk);  in tcp_create_openreq_child()  local
449 newtp->pred_flags = 0; in tcp_create_openreq_child()
451 newtp->rcv_wup = newtp->copied_seq = in tcp_create_openreq_child()
452 newtp->rcv_nxt = treq->rcv_isn + 1; in tcp_create_openreq_child()
454 newtp->snd_sml = newtp->snd_una = in tcp_create_openreq_child()
455 newtp->snd_nxt = newtp->snd_up = treq->snt_isn + 1; in tcp_create_openreq_child()
457 tcp_prequeue_init(newtp); in tcp_create_openreq_child()
458 INIT_LIST_HEAD(&newtp->tsq_node); in tcp_create_openreq_child()
460 tcp_init_wl(newtp, treq->rcv_isn); in tcp_create_openreq_child()
462 newtp->srtt_us = 0; in tcp_create_openreq_child()
463 newtp->mdev_us = jiffies_to_usecs(TCP_TIMEOUT_INIT); in tcp_create_openreq_child()
466 newtp->packets_out = 0; in tcp_create_openreq_child()
467 newtp->retrans_out = 0; in tcp_create_openreq_child()
468 newtp->sacked_out = 0; in tcp_create_openreq_child()
469 newtp->fackets_out = 0; in tcp_create_openreq_child()
470 newtp->snd_ssthresh = TCP_INFINITE_SSTHRESH; in tcp_create_openreq_child()
471 tcp_enable_early_retrans(newtp); in tcp_create_openreq_child()
472 newtp->tlp_high_seq = 0; in tcp_create_openreq_child()
473 newtp->lsndtime = treq->snt_synack; in tcp_create_openreq_child()
474 newtp->last_oow_ack_time = 0; in tcp_create_openreq_child()
475 newtp->total_retrans = req->num_retrans; in tcp_create_openreq_child()
482 newtp->snd_cwnd = TCP_INIT_CWND; in tcp_create_openreq_child()
483 newtp->snd_cwnd_cnt = 0; in tcp_create_openreq_child()
486 __skb_queue_head_init(&newtp->out_of_order_queue); in tcp_create_openreq_child()
487 newtp->write_seq = newtp->pushed_seq = treq->snt_isn + 1; in tcp_create_openreq_child()
489 newtp->rx_opt.saw_tstamp = 0; in tcp_create_openreq_child()
491 newtp->rx_opt.dsack = 0; in tcp_create_openreq_child()
492 newtp->rx_opt.num_sacks = 0; in tcp_create_openreq_child()
494 newtp->urg_data = 0; in tcp_create_openreq_child()
498 keepalive_time_when(newtp)); in tcp_create_openreq_child()
500 newtp->rx_opt.tstamp_ok = ireq->tstamp_ok; in tcp_create_openreq_child()
501 if ((newtp->rx_opt.sack_ok = ireq->sack_ok) != 0) { in tcp_create_openreq_child()
503 tcp_enable_fack(newtp); in tcp_create_openreq_child()
505 newtp->window_clamp = req->window_clamp; in tcp_create_openreq_child()
506 newtp->rcv_ssthresh = req->rcv_wnd; in tcp_create_openreq_child()
507 newtp->rcv_wnd = req->rcv_wnd; in tcp_create_openreq_child()
508 newtp->rx_opt.wscale_ok = ireq->wscale_ok; in tcp_create_openreq_child()
509 if (newtp->rx_opt.wscale_ok) { in tcp_create_openreq_child()
510 newtp->rx_opt.snd_wscale = ireq->snd_wscale; in tcp_create_openreq_child()
511 newtp->rx_opt.rcv_wscale = ireq->rcv_wscale; in tcp_create_openreq_child()
513 newtp->rx_opt.snd_wscale = newtp->rx_opt.rcv_wscale = 0; in tcp_create_openreq_child()
514 newtp->window_clamp = min(newtp->window_clamp, 65535U); in tcp_create_openreq_child()
516 newtp->snd_wnd = (ntohs(tcp_hdr(skb)->window) << in tcp_create_openreq_child()
517 newtp->rx_opt.snd_wscale); in tcp_create_openreq_child()
518 newtp->max_window = newtp->snd_wnd; in tcp_create_openreq_child()
520 if (newtp->rx_opt.tstamp_ok) { in tcp_create_openreq_child()
521 newtp->rx_opt.ts_recent = req->ts_recent; in tcp_create_openreq_child()
522 newtp->rx_opt.ts_recent_stamp = get_seconds(); in tcp_create_openreq_child()
523 newtp->tcp_header_len = sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED; in tcp_create_openreq_child()
525 newtp->rx_opt.ts_recent_stamp = 0; in tcp_create_openreq_child()
526 newtp->tcp_header_len = sizeof(struct tcphdr); in tcp_create_openreq_child()
528 newtp->tsoffset = 0; in tcp_create_openreq_child()
530 newtp->md5sig_info = NULL; /*XXX*/ in tcp_create_openreq_child()
531 if (newtp->af_specific->md5_lookup(sk, newsk)) in tcp_create_openreq_child()
532 newtp->tcp_header_len += TCPOLEN_MD5SIG_ALIGNED; in tcp_create_openreq_child()
534 if (skb->len >= TCP_MSS_DEFAULT + newtp->tcp_header_len) in tcp_create_openreq_child()
535 newicsk->icsk_ack.last_seg_size = skb->len - newtp->tcp_header_len; in tcp_create_openreq_child()
536 newtp->rx_opt.mss_clamp = req->mss; in tcp_create_openreq_child()
537 tcp_ecn_openreq_child(newtp, req); in tcp_create_openreq_child()
538 newtp->fastopen_rsk = NULL; in tcp_create_openreq_child()
539 newtp->syn_data_acked = 0; in tcp_create_openreq_child()