Fix update request timeout handling
This commit is contained in:
parent
1d092504e4
commit
dc9ac724cb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue