summaryrefslogtreecommitdiff
path: root/nest/rt-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 621a8353..4da6807a 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -328,11 +328,13 @@ rt_prune(rtable *tab)
net *n = (net *) f;
rte *e;
ncnt++;
+ rescan:
for (e=n->routes; e; e=e->next, rcnt++)
if (e->attrs->proto->core_state != FS_HAPPY)
{
rte_discard(e);
rdel++;
+ goto rescan;
}
if (!n->routes) /* Orphaned FIB entry? */
{