ospfd: fix bug where acks were not be generated to incoming P2P/P2MP neighbors

Signed-off-by: Lou Berger <lberger@labn.net>
This commit is contained in:
Lou Berger 2022-10-29 17:17:56 +00:00
parent c39c1d6ab5
commit dd3b58a00a

View 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);
}