Struct ntp_proto::SystemConfig
source · pub struct SystemConfig {
pub min_intersection_survivors: usize,
pub panic_threshold: StepThreshold,
pub startup_panic_threshold: StepThreshold,
pub accumulated_threshold: Option<NtpDuration>,
pub local_stratum: u8,
pub poll_limits: PollIntervalLimits,
pub initial_poll: PollInterval,
}Fields§
§min_intersection_survivors: usizeMinimum number of survivors needed to be able to discipline the system clock. More survivors (so more servers from which to get the time) means a more accurate time.
The spec notes (CMIN was renamed to MIN_INTERSECTION_SURVIVORS in our implementation):
CMIN defines the minimum number of servers consistent with the correctness requirements. Suspicious operators would set CMIN to ensure multiple redundant servers are available for the algorithms to mitigate properly. However, for historic reasons the default value for CMIN is one.
panic_threshold: StepThresholdThe maximum amount the system clock is allowed to change in a single go before we conclude something is seriously wrong. This is used to limit the changes to the clock to reasonable ammounts, and stop issues with remote servers from causing us to drift too far.
Note that this is not used during startup. To limit system clock changes during startup, use startup_panic_threshold
startup_panic_threshold: StepThresholdThe maximum amount the system clock is allowed to change during startup. This can be used to limit the impact of bad servers if the system clock is known to be reasonable on startup
accumulated_threshold: Option<NtpDuration>The maximum amount distributed amongst all steps except at startup the daemon is allowed to step the system clock.
local_stratum: u8Stratum of the local clock, when not synchronized through ntp. This can be used in servers to indicate that there are external mechanisms synchronizing the clock
poll_limits: PollIntervalLimitsMinima and maxima for the poll interval of clients
initial_poll: PollIntervalInitial poll interval of the system
Trait Implementations§
source§impl Clone for SystemConfig
impl Clone for SystemConfig
source§fn clone(&self) -> SystemConfig
fn clone(&self) -> SystemConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more