mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-05 18:45:06 -05:00
ntp: define NTP_MAX_STRATUM for other modules
This commit is contained in:
@@ -90,6 +90,9 @@ timeout_handler(void *arbitrary)
|
||||
leap = LEAP_Unsynchronised;
|
||||
}
|
||||
|
||||
if (our_stratum >= NTP_MAX_STRATUM)
|
||||
our_stratum = 0;
|
||||
|
||||
message.lvm = NTP_LVM(leap, NTP_VERSION, MODE_BROADCAST);
|
||||
message.stratum = our_stratum;
|
||||
message.poll = 6; /* FIXME: what should this be? */
|
||||
|
||||
Reference in New Issue
Block a user