72 #define NTP_FL_LI_UNKNOWN 0xc0 75 #define NTP_FL_VN_1 0x20 78 #define NTP_FL_MODE_CLIENT 0x03 81 #define NTP_FL_MODE_SERVER 0x04 84 #define NTP_FL_MODE_MASK 0x07 87 #define NTP_EPOCH 2208988800UL 93 #define NTP_FRACTION_MAGIC 0x69505845UL 99 #define NTP_MIN_TIMEOUT ( 1 * TICKS_PER_SEC ) 105 #define NTP_MAX_TIMEOUT ( 10 * TICKS_PER_SEC )
char text[4]
Textual identifier.
uint32_t opaque
Opaque integer.
struct in_addr in
IPv4 address.
An NTP reference identifier.
An NTP short-format timestamp.
uint32_t fraction
Fraction of a second.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint16_t fraction
Fraction of a second.
int start_ntp(struct interface *job, const char *hostname)
Start NTP client.