]> git.meshlink.io Git - meshlink/blobdiff - src/node.h
Revert "Fixed a bug in the invitation code that prevented correct working of the...
[meshlink] / src / node.h
index 409449c94e80ed1c382d82522c275474ee86d7dc..c86c3cee9a650225137f9c1f17f73cc96effd306 100644 (file)
@@ -40,10 +40,9 @@ typedef struct node_status_t {
 
 typedef struct node_t {
        char *name;                             /* name of this node */
-       void *priv;
-       
        uint32_t options;                       /* options turned on for this node */
        dev_class_t devclass;
+       void *priv;
 
        struct meshlink_handle *mesh;           /* The mesh this node belongs to */
 
@@ -70,6 +69,7 @@ typedef struct node_t {
 
        struct connection_t *connection;        /* Connection associated with this node (if a direct connection exists) */
        time_t last_connect_try;
+       time_t last_successfull_connection;
 
        uint32_t sent_seqno;                    /* Sequence number last sent to this node */
        uint32_t received_seqno;                /* Sequence number last received from this node */