Use Dijkstra's algorithm. Based on patches from Max Rijevskiy.
This commit is contained in:
parent
26a228e302
commit
6e80da3370
3 changed files with 141 additions and 40 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue