]> tinc-vpn.org Git - tinc/blobdiff - src/node.h
Move RSA key generation into the wrappers.
[tinc] / src / node.h
index fee68593eafc86bd88ed266119d8cfa16f40343e..7b777288c82639719930e63e4a14b134c797d351 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef __TINC_NODE_H__
 #define __TINC_NODE_H__
 
+#include <event.h>
+
 #include "splay_tree.h"
 #include "cipher.h"
 #include "connection.h"
@@ -60,6 +62,7 @@ typedef struct node_t {
 
        list_t *queue;                          /* Queue for packets awaiting to be encrypted */
 
+       int distance;
        struct node_t *nexthop;                 /* nearest node from us to him */
        struct node_t *via;                     /* next hop for UDP packets */