diff options
author | wollman <wollman@FreeBSD.org> | 1995-02-09 23:13:27 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-02-09 23:13:27 +0000 |
commit | 72af2aa44a98381d496043f67a333df345e987a9 (patch) | |
tree | 6b8f4500f8844dcde0c5fcc625cf24bb530f5240 /sys/netinet/tcp_timer.c | |
parent | 93f26e434abdf6c41008b87288c038fa1ada912f (diff) | |
download | FreeBSD-src-72af2aa44a98381d496043f67a333df345e987a9.zip FreeBSD-src-72af2aa44a98381d496043f67a333df345e987a9.tar.gz |
Merge Transaction TCP, courtesy of Andras Olah <olah@cs.utwente.nl> and
Bob Braden <braden@isi.edu>.
NB: This has not had David's TCP ACK hack re-integrated. It is not clear
what the correct solution to this problem is, if any. If a better solution
doesn't pop up in response to this message, I'll put David's code back in
(or he's welcome to do so himself).
Diffstat (limited to 'sys/netinet/tcp_timer.c')
-rw-r--r-- | sys/netinet/tcp_timer.c | 11 |
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. */ |