73 #define NTP_FL_LI_UNKNOWN 0xc0 76 #define NTP_FL_VN_1 0x20 79 #define NTP_FL_MODE_CLIENT 0x03 82 #define NTP_FL_MODE_SERVER 0x04 85 #define NTP_FL_MODE_MASK 0x07 88 #define NTP_EPOCH 2208988800UL 94 #define NTP_FRACTION_MAGIC 0x69505845UL 100 #define NTP_MIN_TIMEOUT ( 1 * TICKS_PER_SEC ) 106 #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.