summaryrefslogtreecommitdiffstats
path: root/isisd/isis_redist.c
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2018-07-26 10:01:47 +0200
committerChristian Franke <chris@opensourcerouting.org>2018-08-03 13:25:39 +0200
commitc30f211bbab2afdb9755838b2c8c6bb9adb3dc91 (patch)
tree34eef1dfaf27d8aca682df5493f5ec94dc01bdb8 /isisd/isis_redist.c
parentisisd: move route_table into spftree (diff)
downloadfrr-c30f211bbab2afdb9755838b2c8c6bb9adb3dc91.tar.xz
frr-c30f211bbab2afdb9755838b2c8c6bb9adb3dc91.zip
isisd: fix redist_delete to also consider level-2
There was an off-by-one error in redist_delete, so that routes redistributed into level-2 could never be withdrawn. Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--isisd/isis_redist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_redist.c b/isisd/isis_redist.c
index 1c061fe1c..cd3ca4437 100644
--- a/isisd/isis_redist.c
+++ b/isisd/isis_redist.c
@@ -322,7 +322,7 @@ void isis_redist_delete(int type, struct prefix *p, struct prefix_ipv6 *src_p)
route_unlock_node(ei_node);
for (ALL_LIST_ELEMENTS_RO(isis->area_list, node, area))
- for (level = 1; level < ISIS_LEVELS; level++) {
+ for (level = ISIS_LEVEL1; level <= ISIS_LEVEL2; level++) {
redist = get_redist_settings(area, family, type, level);
if (!redist->redist)
continue;