summaryrefslogtreecommitdiff
path: root/ospfd/ospfd.c
diff options
context:
space:
mode:
authorpaul <paul>2003-06-22 08:35:18 +0000
committerpaul <paul>2003-06-22 08:35:18 +0000
commit084c7844aee44212435892cfa9e995feabcad03a (patch)
treeb4fe5d3e4bbcdb694b72f94742fa18a5211e5603 /ospfd/ospfd.c
parent464c82043a47791b75ab949367d5d4f32e67ac13 (diff)
2003-06-19 Paul Jakma <paul@dishone.st>
* ospfd.c (ospf_area_nssa_set): Set defaults for NSSA Role, State and Stability Interval and no_summary. (ospf_area_nssa_translator_role_(un?)set): Update to NSSATranslatorRole
Diffstat (limited to 'ospfd/ospfd.c')
-rw-r--r--ospfd/ospfd.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c
index a12a0115..cec8903c 100644
--- a/ospfd/ospfd.c
+++ b/ospfd/ospfd.c
@@ -1119,6 +1119,12 @@ ospf_area_nssa_set (struct ospf *ospf, struct in_addr area_id)
ospf->anyNSSA++;
}
+ /* set NSSA area defaults */
+ area->no_summary = 0;
+ area->NSSATranslatorRole = OSPF_NSSA_ROLE_CANDIDATE;
+ area->NSSATranslatorState = OSPF_NSSA_STATE_DISABLED;
+ area->NSSATranslatorStabilityInterval = OSPF_NSSA_TRANS_STABLE_DEFAULT;
+
return 1;
}
@@ -1152,7 +1158,7 @@ ospf_area_nssa_translator_role_set (struct ospf *ospf, struct in_addr area_id,
if (area == NULL)
return 0;
- area->NSSATranslator = role;
+ area->NSSATranslatorRole = role;
return 1;
}
@@ -1167,7 +1173,7 @@ ospf_area_nssa_translator_role_unset (struct ospf *ospf,
if (area == NULL)
return 0;
- area->NSSATranslator = OSPF_NSSA_ROLE_CANDIDATE;
+ area->NSSATranslatorRole = OSPF_NSSA_ROLE_CANDIDATE;
ospf_area_check_free (ospf, area_id);