Lines Matching defs:timestamps
128 * Treat NTP timestamps as signed two's-complement integers. This way,
129 * timestamps that have the MSB set simply become negative offsets from
158 /* Start offset of the timestamps to extract from the SNTP packet */
286 sntp_process(const struct sntp_timestamps *timestamps)
291 sec = (s32_t)lwip_ntohl(timestamps->xmit.sec);
292 frac = lwip_ntohl(timestamps->xmit.frac);
296 if (timestamps->recv.sec != 0 || timestamps->recv.frac != 0)
315 t1 = SNTP_TIMESTAMP_TO_S64(timestamps->orig);
316 t2 = SNTP_TIMESTAMP_TO_S64(timestamps->recv);
441 struct sntp_timestamps timestamps;
472 pbuf_copy_partial(p, ×tamps, sizeof(timestamps), SNTP_OFFSET_TIMESTAMPS);
475 if (timestamps.orig.sec != sntp_last_timestamp_sent.sec ||
476 timestamps.orig.frac != sntp_last_timestamp_sent.frac) {
507 sntp_process(×tamps);