From df4add94a4a6461758b218a9ad257efc735062fe Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 11 Jun 2009 19:07:54 +0200 Subject: [PATCH] Remove pending MTU probe events when a node's reachability status changes. --- src/graph.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/graph.c b/src/graph.c index 87bb220..8564358 100644 --- a/src/graph.c +++ b/src/graph.c @@ -264,6 +264,11 @@ void sssp_bfs(void) n->minmtu = 0; n->mtuprobes = 0; + if(n->mtuevent) { + event_del(n->mtuevent); + n->mtuevent = NULL; + } + asprintf(&envp[0], "NETNAME=%s", netname ? : ""); asprintf(&envp[1], "DEVICE=%s", device ? : ""); asprintf(&envp[2], "INTERFACE=%s", iface ? : ""); -- 2.25.1