]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Revert "OSPF: On physical PtP links, skip next-hop resolving"
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 21 Mar 2024 14:59:26 +0000 (15:59 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 21 Mar 2024 14:59:26 +0000 (15:59 +0100)
This reverts commit 31aa62ae6d2e111e87c08b4b27a16ead968f0689.

proto/ospf/rt.c

index efcd4e17e0fe00da1ff96f7736df998d48244440..471bb5860d8282878ce046fcc7a7e387d96a58bc 100644 (file)
@@ -1796,12 +1796,7 @@ calc_next_hop(struct ospf_area *oa, struct top_hash_entry *en,
     if (ifa->type == OSPF_IT_VLINK)
       return new_nexthop(p, IPA_NONE, NULL, 0);
 
-    /*
-     * 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);
+    /* FIXME: On physical PtP links we may skip next-hop altogether */
 
     if (ospf_is_v2(p) || ospf_is_ip6(p))
     {