Add a configuration option for the time source.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
4782d669c2
commit
f89e203209
6
config.c
6
config.c
|
@ -445,6 +445,12 @@ static enum parser_result parse_global_setting(const char *option,
|
|||
return r;
|
||||
cfg->dds.kernel_leap = val;
|
||||
|
||||
} else if (!strcmp(option, "timeSource")) {
|
||||
r = get_ranged_int(value, &val, 0x10, 0xfe);
|
||||
if (r != PARSED_OK)
|
||||
return r;
|
||||
cfg->dds.time_source = val;
|
||||
|
||||
} else
|
||||
return NOT_PARSED;
|
||||
|
||||
|
|
|
@ -64,3 +64,4 @@ productDescription ;;
|
|||
revisionData ;;
|
||||
manufacturerIdentity 00:00:00
|
||||
userDescription ;
|
||||
timeSource 0xA0
|
||||
|
|
8
ptp4l.8
8
ptp4l.8
|
@ -1,4 +1,4 @@
|
|||
.TH PTP4l 8 "November 2012" "linuxptp"
|
||||
.TH PTP4l 8 "July 2013" "linuxptp"
|
||||
.SH NAME
|
||||
ptp4l \- PTP Boundary/Ordinary Clock
|
||||
|
||||
|
@ -350,6 +350,12 @@ one-second offset slowly by changing the clock frequency (unless the
|
|||
.B pi_offset_const
|
||||
option is set to correct such offset by stepping).
|
||||
Relevant only with software time stamping. The default is 1 (enabled).
|
||||
.TP
|
||||
.B timeSource
|
||||
The time source is a single byte code that gives an idea of the kind
|
||||
of local clock in use. The value is purely informational, having no
|
||||
effect on the outcome of the Best Master Clock algorithm, and is
|
||||
advertised when the clock becomes grand master.
|
||||
|
||||
.SH TIME SCALE USAGE
|
||||
|
||||
|
|
Loading…
Reference in New Issue