mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-07 07:35:07 -05:00
reference: add "local activate" option
This option sets an activating root distance for the local reference. The local reference will not be used until the root distance drops below the configured value for the first time. This can be used to prevent the local reference from being activated on a server which has never been synchronised with an upstream server. The default value of 0.0 causes no activating distance to be used, such that the local reference is always eligible for activation.
This commit is contained in:
committed by
Miroslav Lichvar
parent
b8ead3485b
commit
9397ae2b0a
4
candm.h
4
candm.h
@@ -111,7 +111,8 @@
|
||||
#define REQ_DOFFSET2 71
|
||||
#define REQ_MODIFY_SELECTOPTS 72
|
||||
#define REQ_MODIFY_OFFSET 73
|
||||
#define N_REQUEST_TYPES 74
|
||||
#define REQ_LOCAL3 74
|
||||
#define N_REQUEST_TYPES 75
|
||||
|
||||
/* Structure used to exchange timespecs independent of time_t size */
|
||||
typedef struct {
|
||||
@@ -237,6 +238,7 @@ typedef struct {
|
||||
int32_t stratum;
|
||||
Float distance;
|
||||
int32_t orphan;
|
||||
Float activate;
|
||||
int32_t EOR;
|
||||
} REQ_Local;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user