mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-18 02:03:32 +00:00
Merge pull request #8329 from volta-networks/fix_unkown_lsa_U_bit
ospf6d: Do not flood unknown LSAs if U-bit is clear
This commit is contained in:
commit
67bf1a4215
@ -463,6 +463,19 @@ static void ospf6_flood_process(struct ospf6_neighbor *from,
|
|||||||
struct ospf6_area *oa;
|
struct ospf6_area *oa;
|
||||||
|
|
||||||
for (ALL_LIST_ELEMENTS(process->area_list, node, nnode, oa)) {
|
for (ALL_LIST_ELEMENTS(process->area_list, node, nnode, oa)) {
|
||||||
|
|
||||||
|
/* If unknown LSA and U-bit clear, treat as link local
|
||||||
|
* flooding scope
|
||||||
|
*/
|
||||||
|
if (!OSPF6_LSA_IS_KNOWN(lsa->header->type)
|
||||||
|
&& !(ntohs(lsa->header->type) & OSPF6_LSTYPE_UBIT_MASK)
|
||||||
|
&& (oa != OSPF6_INTERFACE(lsa->lsdb->data)->area)) {
|
||||||
|
|
||||||
|
if (IS_OSPF6_DEBUG_FLOODING)
|
||||||
|
zlog_debug("Unknown LSA, do not flood");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (OSPF6_LSA_SCOPE(lsa->header->type) == OSPF6_SCOPE_AREA
|
if (OSPF6_LSA_SCOPE(lsa->header->type) == OSPF6_SCOPE_AREA
|
||||||
&& oa != OSPF6_AREA(lsa->lsdb->data))
|
&& oa != OSPF6_AREA(lsa->lsdb->data))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user