From 084c7844aee44212435892cfa9e995feabcad03a Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 22 Jun 2003 08:35:18 +0000 Subject: 2003-06-19 Paul Jakma * 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 --- ospfd/ospfd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ospfd') 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); -- cgit v1.2.1