diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-28 20:05:16 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-28 20:05:16 +0300 |
| commit | fd4bd21eeef612234c6000f9ff87e763969d2479 (patch) | |
| tree | 866eec80c2a850f974774b766ef12f0d60a442b6 /ospf6d/ospf6_nssa.c | |
| parent | 68275b093b472cf60c679566b87ab27809841f9e (diff) | |
| parent | 46e9628d01943f437a8f0439a3322159eb9bb18a (diff) | |
Merge pull request #9831 from manojvn/379909_383518
ospf6d: minor code enhancements.
Diffstat (limited to 'ospf6d/ospf6_nssa.c')
| -rw-r--r-- | ospf6d/ospf6_nssa.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ospf6d/ospf6_nssa.c b/ospf6d/ospf6_nssa.c index 84f014d680..cd1be3a5b7 100644 --- a/ospf6d/ospf6_nssa.c +++ b/ospf6d/ospf6_nssa.c @@ -188,12 +188,15 @@ void ospf6_abr_nssa_check_status(struct ospf6 *ospf6) * when they are not translating. */ if (old_state != area->NSSATranslatorState) { - if (old_state == OSPF6_NSSA_TRANSLATE_DISABLED) + if (old_state == OSPF6_NSSA_TRANSLATE_DISABLED) { + ++ospf6->redist_count; ospf6_asbr_status_update(ospf6, - ++ospf6->redist_count); - else + ospf6->redist_count); + } else { + --ospf6->redist_count; ospf6_asbr_status_update(ospf6, - --ospf6->redist_count); + ospf6->redist_count); + } } } } |
