fix calculating to_tsecr... This prevents the rtt calculations from

going all wonky...
This commit is contained in:
John-Mark Gurney 2006-09-26 01:21:46 +00:00
parent ebe609b4a2
commit e16fa5ca55
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}