summaryrefslogtreecommitdiff
path: root/ospfd/ospf_flood.c
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2022-10-29 17:17:56 +0000
committerLou Berger <lberger@labn.net>2022-10-29 17:17:56 +0000
commitdd3b58a00aebc1b72c2dc18cc28d9cb6bbcd1c5b (patch)
tree439ab6d09cb492ce3b1eca1f7ec7ee561449c366 /ospfd/ospf_flood.c
parentc39c1d6ab5792baaec8c4f5fe617583c049422dd (diff)
ospfd: fix bug where acks were not be generated to incoming P2P/P2MP neighbors
Signed-off-by: Lou Berger <lberger@labn.net>
Diffstat (limited to 'ospfd/ospf_flood.c')
-rw-r--r--ospfd/ospf_flood.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ospfd/ospf_flood.c b/ospfd/ospf_flood.c
index c2af09a679..4bbeee2d74 100644
--- a/ospfd/ospf_flood.c
+++ b/ospfd/ospf_flood.c
@@ -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);
}