From 83bd97be800a3678d75f7fcfc13fcce8f606ca74 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Tue, 21 Aug 2012 20:09:11 +0200 Subject: [PATCH] Let a slaved port report the sync interval. Signed-off-by: Richard Cochran --- port.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/port.c b/port.c index cafb688..491b525 100644 --- a/port.c +++ b/port.c @@ -59,6 +59,7 @@ struct port { struct tmtab tmtab; tmv_t peer_delay; struct mave *avg_delay; + int log_sync_interval; /* portDS */ struct port_defaults pod; struct PortIdentity portIdentity; @@ -1175,6 +1176,11 @@ static void process_sync(struct port *p, struct ptp_message *m) return; } + if (m->header.logMessageInterval != p->log_sync_interval) { + p->log_sync_interval = m->header.logMessageInterval; + clock_sync_interval(p->clock, p->log_sync_interval); + } + // TODO - add asymmetry value to correctionField. if (one_step(m)) {