]> git.meshlink.io Git - meshlink/blobdiff - src/node.h
Send packets back using the same socket as they were received on.
[meshlink] / src / node.h
index 07c7c49f168f9e31da5750f8622a6f9f1c854465..66cb6c62f6024696149af1441133fc7e5a2c26f1 100644 (file)
@@ -40,6 +40,7 @@ typedef struct node_t {
        char *name;                             /* name of this node */
        uint32_t options;                       /* options turned on for this node */
 
+       int sock;                               /* Socket to use for outgoing UDP packets */
        sockaddr_t address;                     /* his real (internet) ip to send UDP packets to */
        char *hostname;                         /* the hostname of its real ip */