diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-04-10 11:18:39 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-05-08 18:52:55 +0200 |
commit | ad5db12a0609f74720e694db70ae7971bff13f6e (patch) | |
tree | 7fda13bac8ca3cd6c84071d3d9ec5100942f334d | |
parent | ecf671475ec2d444230a917fe10e31311f1b33e6 (diff) |
WIP BGP: disable recursive routes
-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) { |