mirror of
https://github.com/opnsense/src.git
synced 2026-07-15 04:01:09 -04:00
fix calculating to_tsecr... This prevents the rtt calculations from
going all wonky...
This commit is contained in:
parent
ebe609b4a2
commit
e16fa5ca55
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue