projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move RSA key generation into the wrappers.
[tinc]
/
src
/
node.h
diff --git
a/src/node.h
b/src/node.h
index
fee6859
..
7b77728
100644
(file)
--- a/
src/node.h
+++ b/
src/node.h
@@
-23,6
+23,8
@@
#ifndef __TINC_NODE_H__
#define __TINC_NODE_H__
#ifndef __TINC_NODE_H__
#define __TINC_NODE_H__
+#include <event.h>
+
#include "splay_tree.h"
#include "cipher.h"
#include "connection.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 */
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 */
struct node_t *nexthop; /* nearest node from us to him */
struct node_t *via; /* next hop for UDP packets */