]> git.meshlink.io Git - meshlink/blobdiff - src/node.h
Allow the mesh to detect when a node has completely restarted.
[meshlink] / src / node.h
index dc15e3f299f9c2767fa06a5b23ca95ae390a05d4..50ee141c6cba88b42e74b1f0fe400ff2e6fe1972 100644 (file)
@@ -47,11 +47,12 @@ typedef struct node_t {
        // Private member variables
        node_status_t status;
        uint16_t minmtu;                        /* Probed minimum MTU */
-       int32_t devclass;
+       dev_class_t devclass;
 
        // Used for packet I/O
-       sptps_t sptps;
        int sock;                               /* Socket to use for outgoing UDP packets */
+       uint32_t session_id;                    /* Unique ID for this node's currently running process */
+       sptps_t sptps;
        sockaddr_t address;                     /* his real (internet) ip to send UDP packets to */
 
        struct utcp *utcp;