diff options
author | jmg <jmg@FreeBSD.org> | 2006-09-26 01:21:46 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2006-09-26 01:21:46 +0000 |
commit | 9a6d92f6dff52572044aa5b135484bdfbc6556ba (patch) | |
tree | 21ab46c9362a2fc4db06a7ff35069caa3136414b | |
parent | a0d200f631291252561f016e34c47c970542ad7a (diff) | |
download | FreeBSD-src-9a6d92f6dff52572044aa5b135484bdfbc6556ba.zip FreeBSD-src-9a6d92f6dff52572044aa5b135484bdfbc6556ba.tar.gz |
fix calculating to_tsecr... This prevents the rtt calculations from
going all wonky...
-rw-r--r-- | sys/netinet/tcp_input.c | 2 | ||||
-rw-r--r-- | 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 e01a6f0..9508abc 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1115,7 +1115,7 @@ after_listen: * 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 e01a6f0..9508abc 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -1115,7 +1115,7 @@ after_listen: * 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; } |