Warn if the master's time properties are suspicious.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-08-26 20:36:43 +02:00
parent d377229ab4
commit 1bfb6fd217
1 changed files with 6 additions and 0 deletions

View File

@ -276,6 +276,12 @@ static void clock_update_slave(struct clock *c)
c->tds.frequencyTraceable = field_is_set(msg, 1, FREQ_TRACEABLE);
c->tds.ptpTimescale = field_is_set(msg, 1, PTP_TIMESCALE);
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)