Let a slaved port update the time properties on every announce message.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2013-04-02 19:28:10 +02:00
parent 1c4f99a0c3
commit 9ee5c1fb8e
1 changed files with 6 additions and 0 deletions

6
port.c
View File

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