#pragma once #include #include #include #define RTT_AVERAGE_SAMPLES 4 struct link_state { uint64_t send_sequence; uint64_t recv_sequence; struct timespec remote_average_rtt; // relative struct timespec ping_pong_rtt[RTT_AVERAGE_SAMPLES]; // relative struct timespec last_pong; // absolute int rtt_ix; struct sockaddr_in6 dest_addr; };