X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fgraph.c;h=2fc3b744c4e13fde81ed1d583f6d3b70df304628;hp=6ad25665772234158475f0caf96845eadc6fd67f;hb=2077451e07f93edc520cf5bc31815624a2b03fdd;hpb=df3220a1549f992cbf4a9b6e67c1e67b69896c7d diff --git a/src/graph.c b/src/graph.c index 6ad25665..2fc3b744 100644 --- a/src/graph.c +++ b/src/graph.c @@ -1,7 +1,7 @@ /* graph.c -- graph algorithms - Copyright (C) 2001-2005 Guus Sliepen , - 2001-2005 Ivo Timmermans + Copyright (C) 2001-2006 Guus Sliepen , + 2001-2005 Ivo Timmermans This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -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);