ntp: move definition of invalid stratum to ntp.h

This commit is contained in:
Miroslav Lichvar 2019-11-07 15:52:34 +01:00
parent fa402a173a
commit 83010590af
2 changed files with 3 additions and 3 deletions

3
ntp.h
View file

@ -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)

View file

@ -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