mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
zebra: handle blackholes encountered in recursive resolution
Signed-off-by: Christian Franke <chris@opensourcerouting.org> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
fa713d9ee5
commit
48a53dc71c
@ -472,6 +472,12 @@ nexthop_active_ipv4 (struct rib *rib, struct nexthop *nexthop, int set,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* If the longest prefix match for the nexthop yields
|
||||||
|
* a blackhole, mark it as inactive. */
|
||||||
|
if (CHECK_FLAG (match->flags, ZEBRA_FLAG_BLACKHOLE)
|
||||||
|
|| CHECK_FLAG (match->flags, ZEBRA_FLAG_REJECT))
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (match->type == ZEBRA_ROUTE_CONNECT)
|
if (match->type == ZEBRA_ROUTE_CONNECT)
|
||||||
{
|
{
|
||||||
/* Directly point connected route. */
|
/* Directly point connected route. */
|
||||||
@ -587,6 +593,12 @@ nexthop_active_ipv6 (struct rib *rib, struct nexthop *nexthop, int set,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
/* If the longest prefix match for the nexthop yields
|
||||||
|
* a blackhole, mark it as inactive. */
|
||||||
|
if (CHECK_FLAG (match->flags, ZEBRA_FLAG_BLACKHOLE)
|
||||||
|
|| CHECK_FLAG (match->flags, ZEBRA_FLAG_REJECT))
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (match->type == ZEBRA_ROUTE_CONNECT)
|
if (match->type == ZEBRA_ROUTE_CONNECT)
|
||||||
{
|
{
|
||||||
/* Directly point connected route. */
|
/* Directly point connected route. */
|
||||||
|
Loading…
Reference in New Issue
Block a user