summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-03 17:27:07 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-03 17:27:07 +0200
commitdc9ac724cbad625b6842c3482c086d3f495a0b32 (patch)
tree5f3780a2331be50e6fb20ca92c1e1e47660b5ffe /src
parent1d092504e40733409ade4cc98718426b58b995bb (diff)
downloadbabel-dc9ac724cbad625b6842c3482c086d3f495a0b32.tar
babel-dc9ac724cbad625b6842c3482c086d3f495a0b32.zip
Fix update request timeout handling
Diffstat (limited to 'src')
-rw-r--r--src/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/route.c b/src/route.c
index a646b03..db89896 100644
--- a/src/route.c
+++ b/src/route.c
@@ -126,7 +126,7 @@ static void maintain_nexthops(gmrf_context_t *ctx, gp_babel_route_t *route) {
nexthop->last_update += GP_BABEL_UPDATE_TIMEOUT(nexthop->interval)*10;
}
}
- else if (gp_babel_since(ctx, nexthop->last_update) > GP_BABEL_UPDATE_REQUEST_TIMEOUT(nexthop->interval)*10 && route->selected == nexthop) {
+ else if (gp_babel_since(ctx, nexthop->last_update) > GP_BABEL_UPDATE_REQUEST_TIMEOUT(nexthop->interval) && route->selected == nexthop) {
if (!nexthop->requested_update) {
gmrf_logf(ctx->gmrf, LOG_INFO, "route about to expire, requesting update");
gp_babel_send_route_request(ctx, NULL, nexthop->neigh, &route->node);