keep track of round trip times of UDP pings
[tinc] / src / node.h
index daa0830..0cdac3f 100644 (file)
@@ -92,6 +92,7 @@ typedef struct node_t {
 
        struct timeval udp_reply_sent;          /* Last time a (gratuitous) UDP probe reply was sent */
        struct timeval udp_ping_sent;           /* Last time a UDP probe was sent */
+       long int udp_ping_rtt;                  /* Round trip time of UDP ping (in microseconds) */
        timeout_t udp_ping_timeout;             /* Ping timeout event */
 
        struct timeval mtu_ping_sent;           /* Last time a MTU probe was sent */
@@ -110,6 +111,8 @@ typedef struct node_t {
        uint64_t in_bytes;
        uint64_t out_packets;
        uint64_t out_bytes;
+
+       struct address_cache_t *address_cache;
 } node_t;
 
 extern struct node_t *myself;