Add an option to configure a free running local clock.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
07b016cd44
commit
1bb4ef4e34
4
config.c
4
config.c
|
@ -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;
|
||||
|
|
|
@ -10,6 +10,7 @@ domainNumber 0
|
|||
clockClass 248
|
||||
clockAccuracy 0xFE
|
||||
offsetScaledLogVariance 0xFFFF
|
||||
free_running 0
|
||||
#
|
||||
# Port Data Set
|
||||
#
|
||||
|
|
1
ds.h
1
ds.h
|
@ -33,6 +33,7 @@ struct defaultDS {
|
|||
UInteger8 priority2;
|
||||
struct ClockIdentity clockIdentity;
|
||||
UInteger8 domainNumber;
|
||||
int free_running;
|
||||
};
|
||||
|
||||
struct dataset {
|
||||
|
|
Loading…
Reference in New Issue