Add an option to configure a free running local clock.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-08-21 16:41:36 +02:00
parent 07b016cd44
commit 1bb4ef4e34
4 changed files with 7 additions and 0 deletions

View File

@ -189,6 +189,10 @@ static void scan_global_line(const char *s, struct config *cfg)
dds->clockQuality.offsetScaledLogVariance = u16;
} else if (1 == sscanf(s, " free_running %d", &val)) {
dds->free_running = val ? 1 : 0;
} else if (1 == sscanf(s, " assume_two_step %u", &val)) {
*cfg->assume_two_step = val ? 1 : 0;

View File

@ -10,6 +10,7 @@ domainNumber 0
clockClass 248
clockAccuracy 0xFE
offsetScaledLogVariance 0xFFFF
free_running 0
#
# Port Data Set
#

1
ds.h
View File

@ -33,6 +33,7 @@ struct defaultDS {
UInteger8 priority2;
struct ClockIdentity clockIdentity;
UInteger8 domainNumber;
int free_running;
};
struct dataset {

View File

@ -10,6 +10,7 @@ domainNumber 0
clockClass 248
clockAccuracy 0xFE
offsetScaledLogVariance 0xFFFF
free_running 0
#
# Port Data Set
#