From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sat, 9 Jul 2022 09:00:18 +0000 (+0100) Subject: Add is a field to store the grandmaster the previous offset refers to. The idea is... X-Git-Tag: 1.2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcab5f0b6da24050350d525e3c20c41b5634ea06;p=thirdparty%2Fnqptp.git Add is a field to store the grandmaster the previous offset refers to. The idea is that if the new grandmaster is different from the previous one, start over. --- diff --git a/nqptp-clock-sources.h b/nqptp-clock-sources.h index 04fd16e..46740fa 100644 --- a/nqptp-clock-sources.h +++ b/nqptp-clock-sources.h @@ -37,7 +37,7 @@ typedef struct { int follow_up_number; int announcements_without_followups; // add 1 for every announce, reset with a followup uint64_t clock_id; - uint64_t previous_offset, previous_offset_time; + uint64_t previous_offset, previous_offset_time, previous_offset_grandmaster; uint64_t mastership_start_time; // set to the time of the first sample used as master // for garbage collection