From 5a077ac88402ea4ec5f25211c14f85ad18aa0f2d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 18 Mar 2014 18:33:25 +0100 Subject: Always update a route's nexthop as soon as the current nexthop is deleted (and clean up the route update code a bit) --- src/babel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/babel.c') diff --git a/src/babel.c b/src/babel.c index fb2d165..0fab0a7 100644 --- a/src/babel.c +++ b/src/babel.c @@ -93,7 +93,7 @@ static void maintain_routes(gmrf_context_t *ctx) { gp_babel_route_t *route = *cur; next = &route->next; - gp_babel_route_update(ctx, route); + gp_babel_route_maintain(ctx, route); if (!route->nexthops && gp_babel_since(ctx, route->last_nexthop) > GP_BABEL_PURGE_TIMEOUT) { gmrf_logf(ctx->gmrf, LOG_DEBUG, "node %04x%04x (%u, seqno=%04x): purging.", -- cgit v1.2.3