mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-05 21:45:02 +00:00
Merge pull request #6716 from sworleys/Connected-Match-Ifindex
zebra: mark connected nh inactive if not matching ifindex
This commit is contained in:
commit
14d09806da
@ -1921,6 +1921,13 @@ static int nexthop_active(afi_t afi, struct route_entry *re,
|
|||||||
if (nexthop->type == NEXTHOP_TYPE_IPV4
|
if (nexthop->type == NEXTHOP_TYPE_IPV4
|
||||||
|| nexthop->type == NEXTHOP_TYPE_IPV6)
|
|| nexthop->type == NEXTHOP_TYPE_IPV6)
|
||||||
nexthop->ifindex = newhop->ifindex;
|
nexthop->ifindex = newhop->ifindex;
|
||||||
|
else if (nexthop->ifindex != newhop->ifindex) {
|
||||||
|
/*
|
||||||
|
* NEXTHOP_TYPE_*_IFINDEX but ifindex
|
||||||
|
* doesn't match what we found.
|
||||||
|
*/
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_ZEBRA_DEBUG_NHG_DETAIL)
|
if (IS_ZEBRA_DEBUG_NHG_DETAIL)
|
||||||
|
Loading…
Reference in New Issue
Block a user