message.poll = my_poll;
message.precision = precision;
-
- /* If we're sending a client mode packet and we aren't synchronized yet,
- we might have to set up artificial values for some of these parameters */
message.root_delay = UTI_DoubleToNtp32(our_root_delay);
message.root_dispersion = UTI_DoubleToNtp32(our_root_dispersion);
-
message.reference_id = htonl(our_ref_id);
/* Now fill in timestamps */
}
/* If it is an NTPv4 packet with a long MAC and no extension fields,
- respond with a NTPv3 packet to avoid breaking RFC 7822 and keep
+ respond with an NTPv3 packet to avoid breaking RFC 7822 and keep
the length symmetric. Otherwise, respond with the same version. */
if (info.version == 4 && info.ext_fields == 0 && info.auth.mode == NTP_AUTH_SYMMETRIC &&
info.auth.mac.length > NTP_MAX_V4_MAC_LENGTH)
/* Source scheduled for name resolving (first resolving or replacement) */
struct UnresolvedSource {
- /* Current address of the source (IDADDR_ID is used for a single source
- with unknown address and IPADDR_UNSPEC for a pool of sources */
+ /* Current address of the source (IPADDR_ID is used for a single source
+ with unknown address and IPADDR_UNSPEC for a pool of sources) */
NTP_Remote_Address address;
/* ID of the pool if not a single source */
int pool_id;