projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62f235e
)
Forget addresses of unreachable nodes.
author
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 8 Dec 2009 22:18:37 +0000
(22:18 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 8 Dec 2009 22:18:37 +0000
(22:18 +0000)
We clear the cached address used for UDP connections when a node becomes
unreachable. This also prevents host-up scripts from passing the old, cached
address from when the host becomes reachable again from a different address.
src/graph.c
patch
|
blob
|
history
diff --git
a/src/graph.c
b/src/graph.c
index
148f23c
..
f5aff5b
100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-286,6
+286,9
@@
void sssp_bfs(void) {
free(envp[i]);
subnet_update(n, NULL, n->status.reachable);
+
+ if(!n->status.reachable)
+ update_node_udp(n, NULL);
}
}
}