mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Do not allow interdependent recursive routes.
This commit is contained in:
parent
f428631cd6
commit
2c9033afd5
@ -1509,7 +1509,16 @@ rt_update_hostentry(rtable *tab, struct hostentry *he)
|
||||
rta *a = n->routes->attrs;
|
||||
pxlen = n->n.pxlen;
|
||||
|
||||
if (a->dest == RTD_DEVICE)
|
||||
if (a->hostentry)
|
||||
{
|
||||
/* Recursive route should not depend on another recursive route */
|
||||
log(L_WARN "Next hop address %I resolvable through recursive route for %I/%d",
|
||||
he->addr, n->n.prefix, n->n.pxlen);
|
||||
he->iface = NULL;
|
||||
he->gw = IPA_NONE;
|
||||
he->dest = RTD_UNREACHABLE;
|
||||
}
|
||||
else if (a->dest == RTD_DEVICE)
|
||||
{
|
||||
if (if_local_addr(he->addr, a->iface))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user