diff options
author | paul <paul> | 2003-06-22 08:32:35 +0000 |
---|---|---|
committer | paul <paul> | 2003-06-22 08:32:35 +0000 |
commit | 464c82043a47791b75ab949367d5d4f32e67ac13 (patch) | |
tree | 576b837b2de24ae007fe180962a1008cd4baba0c /ospfd | |
parent | 6d1fab634182777b1316fd3dc898bbd035b889c7 (diff) |
2003-06-19 Paul Jakma <paul@dishone.st>
* ospfd.h (struct ospf_area): remove NSSATranslator. Add
NSSATranslatorState and NSSATranslatorStabilityInterval (currently
not used).
(global): add OSPF_NSSA_TRANS_STABLE_DEFAULT, default for
NSSATranslatorStabilityInterval. Update the LSA_NSSA_GET to
reflect struct ospf_area changes.
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospfd.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ospfd/ospfd.h b/ospfd/ospfd.h index 72a1f150..ca9d9a9f 100644 --- a/ospfd/ospfd.h +++ b/ospfd/ospfd.h @@ -64,6 +64,7 @@ #define OSPF_MAX_SEQUENCE_NUMBER 0x7fffffff #define OSPF_LSA_MAXAGE_CHECK_INTERVAL 30 +#define OSPF_NSSA_TRANS_STABLE_DEFAULT 40 #define OSPF_ALLSPFROUTERS 0xe0000005 /* 224.0.0.5 */ #define OSPF_ALLDROUTERS 0xe0000006 /* 224.0.0.6 */ @@ -341,12 +342,15 @@ struct ospf_area u_int32_t default_cost; /* StubDefaultCost. */ int auth_type; /* Authentication type. */ - u_char NSSATranslatorRole; /* NSSA Role during configuration */ + u_char NSSATranslatorRole; /* NSSA configured role */ #define OSPF_NSSA_ROLE_NEVER 0 #define OSPF_NSSA_ROLE_ALWAYS 1 #define OSPF_NSSA_ROLE_CANDIDATE 2 - u_char NSSATranslator; /* NSSA Role after election process */ - + u_char NSSATranslatorState; /* NSSA operational role */ +#define OSPF_NSSA_STATE_DISABLED 0 +#define OSPF_NSSA_STATE_ENABLED 2 + int NSSATranslatorStabilityInterval; + u_char transit; /* TransitCapability. */ #define OSPF_TRANSIT_FALSE 0 #define OSPF_TRANSIT_TRUE 1 @@ -472,7 +476,7 @@ struct ospf_nbr_nbma #ifdef HAVE_NSSA #define LSA_NSSA_GET(area) \ (((area)->external_routing == OSPF_AREA_NSSA) ? \ - (area)->NSSATranslator : 0) + (area)->NSSATranslatorState : 0) #endif /* HAVE_NSSA */ #define OSPF_TIMER_ON(T,F,V) \ |