Skip to content

Commit 33d19c3

Browse files
authored
Merge pull request FRRouting#20081 from jaredmauch/ospf6_lsa_scope
ospf6d: Fix LSA scope check in flooding for unknown LSAs
2 parents 7042f79 + ceb7b99 commit 33d19c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ospf6d/ospf6_flood.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,10 +558,10 @@ static void ospf6_flood_process(struct ospf6_neighbor *from,
558558
/* If unknown LSA and U-bit clear, treat as link local
559559
* flooding scope
560560
*/
561-
if (!OSPF6_LSA_IS_KNOWN(lsa->header->type)
562-
&& !(ntohs(lsa->header->type) & OSPF6_LSTYPE_UBIT_MASK)
563-
&& (oa != OSPF6_INTERFACE(lsa->lsdb->data)->area)) {
564-
561+
if (!OSPF6_LSA_IS_KNOWN(lsa->header->type) &&
562+
!(ntohs(lsa->header->type) & OSPF6_LSTYPE_UBIT_MASK) &&
563+
OSPF6_LSA_SCOPE(lsa->header->type) == OSPF6_SCOPE_LINKLOCAL &&
564+
(oa != OSPF6_INTERFACE(lsa->lsdb->data)->area)) {
565565
if (IS_OSPF6_DEBUG_FLOODING)
566566
zlog_debug("Unknown LSA, do not flood");
567567
continue;

0 commit comments

Comments
 (0)