Let a slaved port report the sync interval.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-08-21 20:09:11 +02:00
parent 83be79df13
commit 83bd97be80
1 changed files with 6 additions and 0 deletions

6
port.c
View File

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