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:
Andy Fiddaman
2024-03-25 19:05:52 +00:00
committed by Miroslav Lichvar
parent b8ead3485b
commit 9397ae2b0a
11 changed files with 50 additions and 20 deletions

View File

@@ -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;