ntp: use specific reference ID when smoothing served time

Set refid in server/broadcast packets to 127.127.1.255 when a time
smoothing offset is applied to the timestamps. This allows the clients
and administrators to detect that the server is not serving its best
estimate of the true time.
This commit is contained in:
Miroslav Lichvar
2015-06-22 11:09:31 +02:00
parent b9b896d8e7
commit ab1f01bacd
2 changed files with 10 additions and 8 deletions

1
ntp.h
View File

@@ -112,5 +112,6 @@ typedef struct {
/* Special NTP reference IDs */
#define NTP_REFID_UNSYNC 0x0UL
#define NTP_REFID_LOCAL 0x7F7F0101UL /* 127.127.1.1 */
#define NTP_REFID_SMOOTH 0x7F7F01FFUL /* 127.127.1.255 */
#endif /* GOT_NTP_H */