diff options
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r-- | nest/rt-table.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c index a045c91b..3fdee3d3 100644 --- a/nest/rt-table.c +++ b/nest/rt-table.c @@ -2895,6 +2895,15 @@ rt_update_hostentry(rtable *tab, struct hostentry *he) rta *a = e->attrs; pxlen = n->n.addr->pxlen; +#if 1 + if (a->hostentry) + { + /* Recursive route should not depend on another recursive route */ + log(L_WARN "Next hop address %I resolvable through recursive route for %N", + he->addr, n->n.addr); + goto done; + } +#else int MAX_REC = 10; u32 prev_igp_metric = 0; int i = 0; @@ -2915,6 +2924,7 @@ rt_update_hostentry(rtable *tab, struct hostentry *he) prev_igp_metric = he->igp_metric; } +#endif if (a->dest == RTD_UNICAST) { |