Home
last modified time | relevance | path

Searched refs:ntpmsg (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/timesync/
Dtimesyncd-manager.c103 struct ntp_msg ntpmsg = { in manager_send_request() local
136 ntpmsg.trans_time.sec = htobe32(graceful_add_offset_1900_1970(m->trans_time.tv_sec)); in manager_send_request()
137 ntpmsg.trans_time.frac = htobe32(m->trans_time.tv_nsec); in manager_send_request()
141 …len = sendto(m->server_socket, &ntpmsg, sizeof(ntpmsg), MSG_DONTWAIT, &m->current_server_address->… in manager_send_request()
142 if (len == sizeof(ntpmsg)) { in manager_send_request()
399 struct ntp_msg ntpmsg; in manager_receive_response() local
402 .iov_base = &ntpmsg, in manager_receive_response()
403 .iov_len = sizeof(ntpmsg), in manager_receive_response()
464 … if (be32toh(ntpmsg.origin_time.sec) != graceful_add_offset_1900_1970(m->trans_time.tv_sec) || in manager_receive_response()
465 be32toh(ntpmsg.origin_time.frac) != (unsigned long) m->trans_time.tv_nsec) { in manager_receive_response()
[all …]
Dtimesyncd-bus.c186 NTP_FIELD_LEAP(m->ntpmsg.field), in property_get_ntp_message()
187 NTP_FIELD_VERSION(m->ntpmsg.field), in property_get_ntp_message()
188 NTP_FIELD_MODE(m->ntpmsg.field), in property_get_ntp_message()
189 m->ntpmsg.stratum, in property_get_ntp_message()
190 m->ntpmsg.precision, in property_get_ntp_message()
191 ntp_ts_short_to_usec(&m->ntpmsg.root_delay), in property_get_ntp_message()
192 ntp_ts_short_to_usec(&m->ntpmsg.root_dispersion)); in property_get_ntp_message()
196 r = sd_bus_message_append_array(reply, 'y', m->ntpmsg.refid, 4); in property_get_ntp_message()
202 ntp_ts_to_usec(&m->ntpmsg.recv_time), in property_get_ntp_message()
203 ntp_ts_to_usec(&m->ntpmsg.trans_time), in property_get_ntp_message()
Dtimesyncd-manager.h108 struct ntp_msg ntpmsg; member