When ptp4l looses synchronization with remote grandmaster and local clock is selected, pmc commands "get time_status" and "time_status_np" will return "gmPresent" set to false, same way as before synchronizing with the remote grandmaster
Signed-off-by: Joanna Yurdal <j...@trackman.com> --- clock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clock.c b/clock.c index bbfd1a8..147bcb6 100644 --- a/clock.c +++ b/clock.c @@ -2001,6 +2001,7 @@ static void handle_state_decision_event(struct clock *c) if (cid_eq(&best_id, &c->dds.clockIdentity)) { pr_notice("selected local clock %s as best master", cid2str(&best_id)); + c->dad.pds.grandmasterIdentity = c->dds.clockIdentity; } else { pr_notice("selected best master clock %s", cid2str(&best_id)); -- 2.25.1 _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel