X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnode.h;h=1b33789ee0583c3195742ddd7aa1c1ccfe596d40;hb=7b55200887d05c29abb8cea31aa914e03b806e9a;hp=0cdac3fa89c4f7241112a5139bd544a5d1946cb1;hpb=0f0585d71b28428792e53258bc570dddc17b0b27;p=tinc diff --git a/src/node.h b/src/node.h index 0cdac3fa..1b33789e 100644 --- a/src/node.h +++ b/src/node.h @@ -41,7 +41,8 @@ typedef struct node_status_t { unsigned int udppacket: 1; /* 1 if the most recently received packet was UDP */ unsigned int validkey_in: 1; /* 1 if we have sent a valid key to him */ unsigned int has_address: 1; /* 1 if we know an external address for this node */ - unsigned int unused: 20; + unsigned int ping_sent: 1; /* 1 if we sent a UDP probe but haven't received the reply yet */ + unsigned int unused: 19; } node_status_t; typedef struct node_t { @@ -92,7 +93,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) */ + int udp_ping_rtt; /* Round trip time of UDP ping (in microseconds; or -1 if !status.udp_confirmed) */ timeout_t udp_ping_timeout; /* Ping timeout event */ struct timeval mtu_ping_sent; /* Last time a MTU probe was sent */