Lines Matching defs:field
112 uint8_t field;
162 * Timestamp field of the reply. For this purpose, all the NTP
166 .field = NTP_FIELD(0, 4, NTP_MODE_CLIENT),
335 /* ADJ_NANO uses nanoseconds in the microseconds field */
557 /* check our "time cookie" (we just stored nanoseconds in the fraction field) */
572 if (NTP_FIELD_LEAP(ntpmsg.field) == NTP_LEAP_NOTINSYNC ||
578 if (!IN_SET(NTP_FIELD_VERSION(ntpmsg.field), 3, 4)) {
579 log_debug("Response NTPv%d. Disconnecting.", NTP_FIELD_VERSION(ntpmsg.field));
583 if (NTP_FIELD_MODE(ntpmsg.field) != NTP_MODE_SERVER) {
584 log_debug("Unsupported mode %d. Disconnecting.", NTP_FIELD_MODE(ntpmsg.field));
602 if (NTP_FIELD_LEAP(ntpmsg.field) & NTP_LEAP_PLUSSEC)
604 else if (NTP_FIELD_LEAP(ntpmsg.field) & NTP_LEAP_MINUSSEC)
649 NTP_FIELD_LEAP(ntpmsg.field),
650 NTP_FIELD_VERSION(ntpmsg.field),
651 NTP_FIELD_MODE(ntpmsg.field),