]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: fix bug where acks were not be generated to incoming P2P/P2MP neighbors 12227/head
authorLou Berger <lberger@labn.net>
Sat, 29 Oct 2022 17:17:56 +0000 (17:17 +0000)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Sat, 29 Oct 2022 21:57:37 +0000 (21:57 +0000)
Signed-off-by: Lou Berger <lberger@labn.net>
(cherry picked from commit dd3b58a00aebc1b72c2dc18cc28d9cb6bbcd1c5b)

ospfd/ospf_flood.c

index c2af09a6796158230dcab683008e326c7659ef85..4bbeee2d74d587aaa7e0eacc8f9ab5f93da597ee 100644 (file)
@@ -818,6 +818,11 @@ int ospf_flood_through(struct ospf *ospf, struct ospf_neighbor *inbr,
                break;
        }
 
+       /* always need to send ack when incoming intf is PTP or P2MP */
+       if (inbr != NULL && (inbr->oi->type == OSPF_IFTYPE_POINTOMULTIPOINT ||
+                            inbr->oi->type == OSPF_IFTYPE_POINTOPOINT))
+               lsa_ack_flag = 1;
+
        return (lsa_ack_flag);
 }