From 9ee5c1fb8e006d0b0bd3c586aefd6f1e7209e761 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Tue, 2 Apr 2013 19:28:10 +0200 Subject: [PATCH] Let a slaved port update the time properties on every announce message. Signed-off-by: Richard Cochran --- port.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/port.c b/port.c index 9bfbf33..4346422 100644 --- a/port.c +++ b/port.c @@ -1231,10 +1231,16 @@ static int update_current_master(struct port *p, struct ptp_message *m) struct ptp_message *tmp; struct parent_ds *dad; struct path_trace_tlv *ptt; + struct timePropertiesDS tds; if (!msg_source_equal(m, fc)) return add_foreign_master(p, m); + tds.currentUtcOffset = m->announce.currentUtcOffset; + tds.flags = m->header.flagField[1]; + tds.timeSource = m->announce.timeSource; + clock_update_time_properties(p->clock, tds); + if (p->pod.path_trace_enabled) { ptt = (struct path_trace_tlv *) m->announce.suffix; dad = clock_parent_ds(p->clock);