Home | History | Annotate | Download | only in slirp

Lines Matching refs:rtt

113 static void tcp_xmit_timer(register struct tcpcb *tp, int rtt);
789 * use its rtt as our initial srtt & rtt var.
1159 * Since we now have an rtt measurement, cancel the
1609 tcp_xmit_timer(register struct tcpcb *tp, int rtt)
1615 DEBUG_ARG("rtt = %d", rtt);
1623 * an alpha of .875 (srtt = rtt/8 + srtt*7/8 in fixed
1624 * point). Adjust rtt to origin 0.
1626 delta = rtt - 1 - (tp->t_srtt >> TCP_RTT_SHIFT);
1630 * We accumulate a smoothed rtt variance (actually, a
1632 * timer to smoothed rtt + 4 times the smoothed variance.
1646 * No rtt measurement yet - use the unsmoothed rtt.
1647 * Set the variance to half the rtt (so our first
1648 * retransmit happens at 3*rtt).
1650 tp->t_srtt = rtt << TCP_RTT_SHIFT;
1651 tp->t_rttvar = rtt << (TCP_RTTVAR_SHIFT - 1);
1657 * the retransmit should happen at rtt + 4 * rttvar.