X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnode.h;h=fc872d314e27f1041afa95038ab982a231687c65;hb=76ed9798eed4b5dbd2bc84a248c9ef83eac8c249;hp=3daffd4a2b0eb97b9cf011cfe86dce1a182bfc71;hpb=70e1e467f93f885da3e49289e96757d5cd2ae5ba;p=tinc diff --git a/src/node.h b/src/node.h index 3daffd4a..fc872d31 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 { @@ -85,8 +86,6 @@ typedef struct node_t { uint32_t sent_seqno; /* Sequence number last sent to this node */ uint32_t received_seqno; /* Sequence number last received from this node */ uint32_t received; /* Total valid packets received from this node */ - uint32_t prev_received_seqno; - uint32_t prev_received; uint32_t farfuture; /* Packets in a row that have arrived from the far future */ unsigned char *late; /* Bitfield marking late packets */