0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00

Revert "OSPF: On physical PtP links, skip next-hop resolving"

This reverts commit 31aa62ae6d.
This commit is contained in:
Ondrej Zajicek 2024-03-21 15:59:26 +01:00
parent 46a4932574
commit d21a508e8d

View File

@ -1796,12 +1796,7 @@ calc_next_hop(struct ospf_area *oa, struct top_hash_entry *en,
if (ifa->type == OSPF_IT_VLINK) if (ifa->type == OSPF_IT_VLINK)
return new_nexthop(p, IPA_NONE, NULL, 0); return new_nexthop(p, IPA_NONE, NULL, 0);
/* /* FIXME: On physical PtP links we may skip next-hop altogether */
* The type of the ospf_iface is PtP and the iface is a physical PtP link,
* so we can simply use the iface, and skip further resolving.
*/
if (ifa->type == OSPF_IT_PTP && !(ifa->iface->flags & IF_MULTIACCESS))
return new_nexthop(p, IPA_NONE, ifa->iface, ifa->ecmp_weight);
if (ospf_is_v2(p) || ospf_is_ip6(p)) if (ospf_is_v2(p) || ospf_is_ip6(p))
{ {