mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 13:27:53 +00:00
zebra: only use ACTIVE nexthops in recursive resolution
Only use ACTIVE nexthops to resolve recursive routes, not all nexthops from a resolving route. Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
parent
928f94a930
commit
9d43854d94
@ -1734,6 +1734,10 @@ static bool nexthop_valid_resolve(const struct nexthop *nexthop,
|
||||
if (CHECK_FLAG(resolved->flags, NEXTHOP_FLAG_RECURSIVE))
|
||||
return false;
|
||||
|
||||
/* Must be ACTIVE */
|
||||
if (!CHECK_FLAG(resolved->flags, NEXTHOP_FLAG_ACTIVE))
|
||||
return false;
|
||||
|
||||
switch (nexthop->type) {
|
||||
case NEXTHOP_TYPE_IPV4_IFINDEX:
|
||||
case NEXTHOP_TYPE_IPV6_IFINDEX:
|
||||
|
Loading…
Reference in New Issue
Block a user