projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add generic host-up and host-down scripts.
[oweals/tinc.git]
/
src
/
graph.c
diff --git
a/src/graph.c
b/src/graph.c
index 691a5adb0bda04f97226d96510aaef9271305e51..2fc3b744c4e13fde81ed1d583f6d3b70df304628 100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-283,6
+283,8
@@
void sssp_bfs(void)
asprintf(&envp[5], "REMOTEPORT=%s", port);
envp[6] = NULL;
+ execute_script(n->status.reachable ? "host-up" : "host-down", envp);
+
asprintf(&name,
n->status.reachable ? "hosts/%s-up" : "hosts/%s-down",
n->name);