+
+ /*
+ * If transmit timer is running and timed sequence
+ * number was acked, update smoothed round trip time.
+ */
+ if (tp->t_rtt && SEQ_GT(ti->ti_ack, tp->t_rtseq)) {
+ if (tp->t_srtt == 0)
+ tp->t_srtt = tp->t_rtt;
+ else
+ tp->t_srtt =
+ tcp_alpha * tp->t_srtt +
+ (1 - tcp_alpha) * tp->t_rtt;
+/* printf("rtt %d srtt*100 now %d\n", tp->t_rtt, (int)(tp->t_srtt*100)); */
+ tp->t_rtt = 0;
+ }
+