diff options
| author | Shbinging <bingshui@smail.nju.edu.cn> | 2024-10-16 05:28:02 +0000 |
|---|---|---|
| committer | Shbinging <bingshui@smail.nju.edu.cn> | 2024-10-17 06:37:21 +0000 |
| commit | 71aa5ab7f6f166065e3b869e3c33ba5b7a57fccb (patch) | |
| tree | 7666a8aac2ef3cc23eb0b0320201cf94a518aef0 /ospfd | |
| parent | 5c194b36399afa3e90262234d9246e3383bbe015 (diff) | |
ospfd: update ospf_asbr_status when using no_area_nssa command
In the processing of nssa, if the number of areas that need to be translated is greater than 0, then abr will be regarded as asbr, and it will be marked (0x3) in the flag of router lsa. When a certain area is set from nssa to a normal area, the areas that need to be translated may be reduced. The asbr should be re-interpreted as abr when the translated area is 0.
Signed-off-by: Shbinging <bingshui@smail.nju.edu.cn>
Diffstat (limited to 'ospfd')
| -rw-r--r-- | ospfd/ospfd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index 7638e979a2..9d7870d2f7 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -1730,6 +1730,8 @@ int ospf_area_nssa_unset(struct ospf *ospf, struct in_addr area_id) area->no_summary = 0; area->suppress_fa = 0; area->NSSATranslatorRole = OSPF_NSSA_ROLE_CANDIDATE; + if (area->NSSATranslatorState == OSPF_NSSA_TRANSLATE_ENABLED) + ospf_asbr_status_update(ospf, --ospf->redistribute); area->NSSATranslatorState = OSPF_NSSA_TRANSLATE_DISABLED; area->NSSATranslatorStabilityInterval = OSPF_NSSA_TRANS_STABLE_DEFAULT; ospf_area_type_set(area, OSPF_AREA_DEFAULT); |
