ntp: disable maxdelayratio in interleaved/symmetric mode

It's too unreliable and the maxdelaydevratio test should work better
anyway.
This commit is contained in:
Miroslav Lichvar
2016-12-12 09:11:49 +01:00
parent 9568ff3f06
commit b7bd7469b7
2 changed files with 7 additions and 5 deletions

View File

@@ -1453,11 +1453,12 @@ receive_packet(NCR_Instance inst, NTP_Local_Address *local_addr,
!(inst->mode == MODE_ACTIVE && interleaved_packet &&
delay > UTI_Log2ToDouble(message->poll - 1));
/* Test B requires that the ratio of the round trip delay to the
minimum one currently in the stats data register is less than an
administrator-defined value */
/* Test B requires in the basic client mode that the ratio of the round
trip delay to the minimum one currently in the stats data register is
less than an administrator-defined value */
testB = inst->max_delay_ratio <= 1.0 ||
(delay - dispersion) / SST_MinRoundTripDelay(stats) <= inst->max_delay_ratio;
!(inst->mode == MODE_CLIENT && !interleaved_packet &&
(delay - dispersion) / SST_MinRoundTripDelay(stats) > inst->max_delay_ratio);
/* Test C requires that the ratio of the increase in delay from the minimum
one in the stats data register to the standard deviation of the offsets