char ip[64]; // 64 is nicely aligned and bigger than INET6_ADDRSTRLEN (46)
int family; // AF_INET or AF_INET6
int announcements_without_followups; // add 1 for every announce, reset with a followup
- int announcements_sent; // number of announce messages returned to this clock
uint64_t clock_id;
uint64_t local_time; // the local time when the offset was calculated
uint64_t source_time;
// here, we have the destination, so send it
// if (clocks_private[i].family == AF_INET6) {
- if (clocks_private[i].announcements_sent != 0) {
- debug(1, "Warning: sending another Announce message to %" PRIx64 "at %s...",
- clocks_private[i].clock_id, clocks_private[i].ip);
- } else {
- debug(1, "Sending an Announce message to %" PRIx64 "at %s...",
- clocks_private[i].clock_id, clocks_private[i].ip);
- }
// debug_print_buffer(1, (char *)msg, msg_length);
int ret = sendto(s, msg, msg_length, 0, res->ai_addr, res->ai_addrlen);
if (ret == -1)
debug(1, "result of sendto is %d.", ret);
- clocks_private[i].announcements_sent++;
debug(2, "message clock \"%" PRIx64 "\" at %s on %s.", clocks_private[i].clock_id,
clocks_private[i].ip, clocks_private[i].family == AF_INET6 ? "IPv6" : "IPv4");