mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 16:35:06 -05:00
ntp: move definition of invalid stratum to ntp.h
This commit is contained in:
3
ntp.h
3
ntp.h
@@ -47,6 +47,9 @@ typedef uint32_t NTP_int32;
|
||||
/* Maximum stratum number (infinity) */
|
||||
#define NTP_MAX_STRATUM 16
|
||||
|
||||
/* Invalid stratum number */
|
||||
#define NTP_INVALID_STRATUM 0
|
||||
|
||||
/* The minimum and maximum supported length of MAC */
|
||||
#define NTP_MIN_MAC_LENGTH (4 + 16)
|
||||
#define NTP_MAX_MAC_LENGTH (4 + MAX_HASH_LENGTH)
|
||||
|
||||
@@ -241,9 +241,6 @@ static ARR_Instance broadcasts;
|
||||
/* Maximum allowed dispersion - as defined in RFC 5905 (16 seconds) */
|
||||
#define NTP_MAX_DISPERSION 16.0
|
||||
|
||||
/* Invalid stratum number */
|
||||
#define NTP_INVALID_STRATUM 0
|
||||
|
||||
/* Maximum allowed time for server to process client packet */
|
||||
#define MAX_SERVER_INTERVAL 4.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user