reference: move definition of special refids to ntp.h

This commit is contained in:
Miroslav Lichvar
2015-06-22 09:13:15 +02:00
parent 802cdb3230
commit 6be54f366c
2 changed files with 11 additions and 14 deletions

4
ntp.h
View File

@@ -109,4 +109,8 @@ typedef struct {
#define NTP_LVM(leap, version, mode) \
((((leap) << 6) & 0xc0) | (((version) << 3) & 0x38) | ((mode) & 0x07))
/* Special NTP reference IDs */
#define NTP_REFID_UNSYNC 0x0UL
#define NTP_REFID_LOCAL 0x7F7F0101UL /* 127.127.1.1 */
#endif /* GOT_NTP_H */