Add a configuration option for the time source.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2013-07-05 21:40:06 +02:00
parent 4782d669c2
commit f89e203209
3 changed files with 14 additions and 1 deletions

View File

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

View File

@ -64,3 +64,4 @@ productDescription ;;
revisionData ;;
manufacturerIdentity 00:00:00
userDescription ;
timeSource 0xA0

View File

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