Lines Matching refs:newtp
387 struct tcp_sock *newtp = tcp_sk(newsk);
401 kzalloc(sizeof(*newtp->cookie_values),
408 newtp->cookie_values = newcvp;
411 newtp->cookie_values = NULL;
416 newtp->pred_flags = 0;
418 newtp->rcv_wup = newtp->copied_seq =
419 newtp->rcv_nxt = treq->rcv_isn + 1;
421 newtp->snd_sml = newtp->snd_una =
422 newtp->snd_nxt = newtp->snd_up =
425 tcp_prequeue_init(newtp);
427 tcp_init_wl(newtp, treq->rcv_isn);
429 newtp->srtt = 0;
430 newtp->mdev = TCP_TIMEOUT_INIT;
433 newtp->packets_out = 0;
434 newtp->retrans_out = 0;
435 newtp->sacked_out = 0;
436 newtp->fackets_out = 0;
437 newtp->snd_ssthresh = TCP_INFINITE_SSTHRESH;
444 newtp->snd_cwnd = 2;
445 newtp->snd_cwnd_cnt = 0;
446 newtp->bytes_acked = 0;
448 newtp->frto_counter = 0;
449 newtp->frto_highmark = 0;
455 skb_queue_head_init(&newtp->out_of_order_queue);
456 newtp->write_seq = newtp->pushed_seq =
459 newtp->rx_opt.saw_tstamp = 0;
461 newtp->rx_opt.dsack = 0;
462 newtp->rx_opt.num_sacks = 0;
464 newtp->urg_data = 0;
468 keepalive_time_when(newtp));
470 newtp->rx_opt.tstamp_ok = ireq->tstamp_ok;
471 if ((newtp->rx_opt.sack_ok = ireq->sack_ok) != 0) {
473 tcp_enable_fack(newtp);
475 newtp->window_clamp = req->window_clamp;
476 newtp->rcv_ssthresh = req->rcv_wnd;
477 newtp->rcv_wnd = req->rcv_wnd;
478 newtp->rx_opt.wscale_ok = ireq->wscale_ok;
479 if (newtp->rx_opt.wscale_ok) {
480 newtp->rx_opt.snd_wscale = ireq->snd_wscale;
481 newtp->rx_opt.rcv_wscale = ireq->rcv_wscale;
483 newtp->rx_opt.snd_wscale = newtp->rx_opt.rcv_wscale = 0;
484 newtp->window_clamp = min(newtp->window_clamp, 65535U);
486 newtp->snd_wnd = (ntohs(tcp_hdr(skb)->window) <<
487 newtp->rx_opt.snd_wscale);
488 newtp->max_window = newtp->snd_wnd;
490 if (newtp->rx_opt.tstamp_ok) {
491 newtp->rx_opt.ts_recent = req->ts_recent;
492 newtp->rx_opt.ts_recent_stamp = get_seconds();
493 newtp->tcp_header_len = sizeof(struct tcphdr) + TCPOLEN_TSTAMP_ALIGNED;
495 newtp->rx_opt.ts_recent_stamp = 0;
496 newtp->tcp_header_len = sizeof(struct tcphdr);
499 newtp->md5sig_info = NULL;
500 if (newtp->af_specific->md5_lookup(sk, newsk))
501 newtp->tcp_header_len += TCPOLEN_MD5SIG_ALIGNED;
503 if (skb->len >= TCP_MSS_DEFAULT + newtp->tcp_header_len)
504 newicsk->icsk_ack.last_seg_size = skb->len - newtp->tcp_header_len;
505 newtp->rx_opt.mss_clamp = req->mss;
506 TCP_ECN_openreq_child(newtp, req);