summaryrefslogtreecommitdiffstats
path: root/src/babel.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-03-18 18:33:25 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-03-18 18:33:25 +0100
commit5a077ac88402ea4ec5f25211c14f85ad18aa0f2d (patch)
tree9716c00ba1bbb28b3fe7d5f15a8b94fca34bf15c /src/babel.c
parent2d6ec74c73f9d8404bf48998eed3cb9733c4095f (diff)
downloadbabel-5a077ac88402ea4ec5f25211c14f85ad18aa0f2d.tar
babel-5a077ac88402ea4ec5f25211c14f85ad18aa0f2d.zip
Always update a route's nexthop as soon as the current nexthop is deleted (and clean up the route update code a bit)
Diffstat (limited to 'src/babel.c')
-rw-r--r--src/babel.c2
1 files changed, 1 insertions, 1 deletions
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.",