projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use Dijkstra's algorithm. Based on patches from Max Rijevskiy.
[tinc]
/
src
/
node.h
diff --git
a/src/node.h
b/src/node.h
index
fee6859
..
da5081b
100644
(file)
--- a/
src/node.h
+++ b/
src/node.h
@@
-60,6
+60,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 */