Merge pull request #13065 from rgirada/ospf_abr_summary

This commit is contained in:
Donald Sharp 2023-03-23 19:57:08 -04:00 committed by GitHub
commit 173786f6b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1290,7 +1290,7 @@ static struct ospf_lsa *ospf_handle_summarylsa_lsId_chg(struct ospf_area *area,
struct in_addr old_id) struct in_addr old_id)
{ {
struct ospf_lsa *lsa = NULL; struct ospf_lsa *lsa = NULL;
struct ospf_lsa *new = NULL; struct ospf_lsa *summary_lsa = NULL;
struct summary_lsa *sl = NULL; struct summary_lsa *sl = NULL;
struct ospf_area *old_area = NULL; struct ospf_area *old_area = NULL;
struct ospf *ospf = area->ospf; struct ospf *ospf = area->ospf;
@ -1328,19 +1328,19 @@ static struct ospf_lsa *ospf_handle_summarylsa_lsId_chg(struct ospf_area *area,
if (type == OSPF_SUMMARY_LSA) { if (type == OSPF_SUMMARY_LSA) {
/*Refresh the LSA with new LSA*/ /*Refresh the LSA with new LSA*/
ospf_summary_lsa_refresh(ospf, lsa); summary_lsa = ospf_summary_lsa_refresh(ospf, lsa);
new = ospf_summary_lsa_prepare_and_flood( ospf_summary_lsa_prepare_and_flood(&old_prefix, old_metric,
&old_prefix, old_metric, old_area, old_id); old_area, old_id);
} else { } else {
/*Refresh the LSA with new LSA*/ /*Refresh the LSA with new LSA*/
ospf_summary_asbr_lsa_refresh(ospf, lsa); summary_lsa = ospf_summary_asbr_lsa_refresh(ospf, lsa);
new = ospf_asbr_summary_lsa_prepare_and_flood( ospf_asbr_summary_lsa_prepare_and_flood(&old_prefix, old_metric,
&old_prefix, old_metric, old_area, old_id); old_area, old_id);
} }
return new; return summary_lsa;
} }
/* Originate Summary-LSA. */ /* Originate Summary-LSA. */