projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Forget addresses of unreachable nodes.
[tinc]
/
src
/
graph.c
diff --git
a/src/graph.c
b/src/graph.c
index
c8430d8
..
f5aff5b
100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-241,10
+241,10
@@
void sssp_bfs(void) {
n->status.reachable = !n->status.reachable;
if(n->status.reachable) {
n->status.reachable = !n->status.reachable;
if(n->status.reachable) {
- ifdebug(TRAFFIC) logger(LOG_DEBUG,
_("Node %s (%s) became reachable")
,
+ ifdebug(TRAFFIC) logger(LOG_DEBUG,
"Node %s (%s) became reachable"
,
n->name, n->hostname);
} else {
n->name, n->hostname);
} else {
- ifdebug(TRAFFIC) logger(LOG_DEBUG,
_("Node %s (%s) became unreachable")
,
+ ifdebug(TRAFFIC) logger(LOG_DEBUG,
"Node %s (%s) became unreachable"
,
n->name, n->hostname);
}
n->name, n->hostname);
}
@@
-286,6
+286,9
@@
void sssp_bfs(void) {
free(envp[i]);
subnet_update(n, NULL, n->status.reachable);
free(envp[i]);
subnet_update(n, NULL, n->status.reachable);
+
+ if(!n->status.reachable)
+ update_node_udp(n, NULL);
}
}
}
}
}
}