From e16fa5ca55ab6ddef80944075ddd89618600f38d Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 26 Sep 2006 01:21:46 +0000 Subject: [PATCH] fix calculating to_tsecr... This prevents the rtt calculations from going all wonky... --- sys/netinet/tcp_input.c | 2 +- sys/netinet/tcp_reass.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index e01a6f0778cc..9508abc35388 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1115,7 +1115,7 @@ tcp_input(m, off0) * was established. */ if ((to.to_flags & TOF_TS) && (to.to_tsecr != 0)) { - to.to_tsecr =- tp->ts_offset; + to.to_tsecr -= tp->ts_offset; if (TSTMP_GT(to.to_tsecr, ticks)) to.to_tsecr = 0; } diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index e01a6f0778cc..9508abc35388 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -1115,7 +1115,7 @@ tcp_input(m, off0) * was established. */ if ((to.to_flags & TOF_TS) && (to.to_tsecr != 0)) { - to.to_tsecr =- tp->ts_offset; + to.to_tsecr -= tp->ts_offset; if (TSTMP_GT(to.to_tsecr, ticks)) to.to_tsecr = 0; }