From 0cdadceb6151332b0a3f9323d7336ed44c9c8091 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Sun, 21 Feb 2016 19:03:59 +0000 Subject: Skip redistributed routes when updating the FIB. --- usr.sbin/eigrpd/rde_dual.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.sbin/eigrpd/rde_dual.c b/usr.sbin/eigrpd/rde_dual.c index 92fb8eb5cfb..934db173f92 100644 --- a/usr.sbin/eigrpd/rde_dual.c +++ b/usr.sbin/eigrpd/rde_dual.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_dual.c,v 1.23 2016/02/21 19:01:12 renato Exp $ */ +/* $OpenBSD: rde_dual.c,v 1.24 2016/02/21 19:03:58 renato Exp $ */ /* * Copyright (c) 2015 Renato Westphal @@ -615,8 +615,12 @@ rt_update_fib(struct rt_node *rn) return; TAILQ_FOREACH(route, &rn->routes, entry) { + /* skip redistributed routes */ + if (route->nbr->flags & F_RDE_NBR_REDIST) + continue; + /* - * only feasible successors and the successor itself + * Only feasible successors and the successor itself * are elegible to be installed. */ if (route->rdistance > rn->successor.fdistance) -- cgit v1.2.3