From 464c82043a47791b75ab949367d5d4f32e67ac13 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 22 Jun 2003 08:32:35 +0000 Subject: 2003-06-19 Paul Jakma * 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. --- ospfd/ospfd.h | 12 ++++++++---- 1 file 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) \ -- cgit v1.2.1