summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-08-18 09:18:32 +0200
committerGitHub <noreply@github.com>2021-08-18 09:18:32 +0200
commit2f2372ce9eaf7da58e75c0c6011b9d0a771cf090 (patch)
treef972f62b691d23a0758f7d84402aa5bf5d65fd9d /ospfd
parentMerge pull request #9342 from mobash-rasool/ospfv3-asbr-summarisation (diff)
parentospfd: Summarised External LSA is not flushed in one scenario (diff)
downloadfrr-2f2372ce9eaf7da58e75c0c6011b9d0a771cf090.tar.xz
frr-2f2372ce9eaf7da58e75c0c6011b9d0a771cf090.zip
Merge pull request #9408 from mobash-rasool/ospfv2-bug-fixes-03
ospfd: Summarised External LSA is not flushed in one scenario
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_flood.c2
-rw-r--r--ospfd/ospf_lsa.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospf_flood.c b/ospfd/ospf_flood.c
index 7fddb65a8..8f9153d76 100644
--- a/ospfd/ospf_flood.c
+++ b/ospfd/ospf_flood.c
@@ -267,6 +267,8 @@ static void ospf_process_self_originated_lsa(struct ospf *ospf,
ospf_external_lsa_refresh(ospf, new, &ei_aggr,
LSA_REFRESH_FORCE, true);
+ SET_FLAG(aggr->flags,
+ OSPF_EXTERNAL_AGGRT_ORIGINATED);
} else
ospf_lsa_flush_as(ospf, new);
}
diff --git a/ospfd/ospf_lsa.c b/ospfd/ospf_lsa.c
index 9ef2a6520..d209ae053 100644
--- a/ospfd/ospf_lsa.c
+++ b/ospfd/ospf_lsa.c
@@ -3631,6 +3631,8 @@ struct ospf_lsa *ospf_lsa_refresh(struct ospf *ospf, struct ospf_lsa *lsa)
ospf_external_lsa_refresh(ospf, lsa, &ei_aggr,
LSA_REFRESH_FORCE, true);
+ SET_FLAG(aggr->flags,
+ OSPF_EXTERNAL_AGGRT_ORIGINATED);
} else
ospf_lsa_flush_as(ospf, lsa);
}