fix calculating to_tsecr... This prevents the rtt calculations from
going all wonky...
This commit is contained in:
parent
ebe609b4a2
commit
e16fa5ca55
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user