summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r--sys/netinet/tcp_timer.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index 3c7fb1f..72448f1 100644
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_timer.c 8.1 (Berkeley) 6/10/93
- * $Id$
+ * $Id: tcp_timer.c,v 1.2 1994/08/02 07:49:10 davidg Exp $
*/
#ifndef TUBA_INCLUDE
@@ -123,6 +123,9 @@ tcp_slowtimo()
}
}
tp->t_idle++;
+#ifdef TTCP
+ tp->t_duration++;
+#endif
if (tp->t_rtt)
tp->t_rtt++;
tpgone:
@@ -212,6 +215,12 @@ tcp_timers(tp, timer)
tp->t_srtt = 0;
}
tp->snd_nxt = tp->snd_una;
+#ifdef TTCP
+ /*
+ * Force a segment to be sent.
+ */
+ tp->t_flags |= TF_ACKNOW;
+#endif
/*
* If timing a segment in this window, stop the timer.
*/
OpenPOWER on IntegriCloud