Warn if the master's time properties are suspicious.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
d377229ab4
commit
1bfb6fd217
6
clock.c
6
clock.c
|
@ -276,6 +276,12 @@ static void clock_update_slave(struct clock *c)
|
||||||
c->tds.frequencyTraceable = field_is_set(msg, 1, FREQ_TRACEABLE);
|
c->tds.frequencyTraceable = field_is_set(msg, 1, FREQ_TRACEABLE);
|
||||||
c->tds.ptpTimescale = field_is_set(msg, 1, PTP_TIMESCALE);
|
c->tds.ptpTimescale = field_is_set(msg, 1, PTP_TIMESCALE);
|
||||||
c->tds.timeSource = msg->announce.timeSource;
|
c->tds.timeSource = msg->announce.timeSource;
|
||||||
|
if (!c->tds.ptpTimescale) {
|
||||||
|
pr_warning("foreign master not using PTP timescale");
|
||||||
|
}
|
||||||
|
if (c->tds.currentUtcOffset < CURRENT_UTC_OFFSET) {
|
||||||
|
pr_warning("running in a temporal vortex");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int forwarding(struct clock *c, struct port *p)
|
static int forwarding(struct clock *c, struct port *p)
|
||||||
|
|
Loading…
Reference in New Issue