reference: add orphan mode to local reference

Add orphan option to the local directive. It will enable an orphan mode
compatible with ntpd.
This commit is contained in:
Miroslav Lichvar
2016-03-30 17:39:14 +02:00
parent 81f440a882
commit 8fe5e9cf1e
6 changed files with 26 additions and 6 deletions

2
conf.h
View File

@@ -92,7 +92,7 @@ extern double CNF_GetReselectDistance(void);
extern double CNF_GetStratumWeight(void);
extern double CNF_GetCombineLimit(void);
extern int CNF_AllowLocalReference(int *stratum, double *distance);
extern int CNF_AllowLocalReference(int *stratum, int *orphan, double *distance);
extern void CNF_SetupAccessRestrictions(void);