Let a slaved port report the sync interval.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
83be79df13
commit
83bd97be80
6
port.c
6
port.c
|
@ -59,6 +59,7 @@ struct port {
|
||||||
struct tmtab tmtab;
|
struct tmtab tmtab;
|
||||||
tmv_t peer_delay;
|
tmv_t peer_delay;
|
||||||
struct mave *avg_delay;
|
struct mave *avg_delay;
|
||||||
|
int log_sync_interval;
|
||||||
/* portDS */
|
/* portDS */
|
||||||
struct port_defaults pod;
|
struct port_defaults pod;
|
||||||
struct PortIdentity portIdentity;
|
struct PortIdentity portIdentity;
|
||||||
|
@ -1175,6 +1176,11 @@ static void process_sync(struct port *p, struct ptp_message *m)
|
||||||
return;
|
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.
|
// TODO - add asymmetry value to correctionField.
|
||||||
|
|
||||||
if (one_step(m)) {
|
if (one_step(m)) {
|
||||||
|
|
Loading…
Reference in New Issue