ntp: define NTP_MAX_STRATUM for other modules

This commit is contained in:
Miroslav Lichvar
2014-10-14 17:24:41 +02:00
parent af0b83a2c3
commit e0059bcc6b
4 changed files with 8 additions and 5 deletions

View File

@@ -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? */