From 4160a9dd9416ee5afd215750bdd6c6e7a4e7ed1f Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 22 Jul 2011 20:00:24 +0200 Subject: OSPF NSSA translator election. --- proto/ospf/ospf.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'proto/ospf/ospf.h') diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index a8b4a980..68c19424 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -127,6 +127,8 @@ struct ospf_area_config u8 type; /* Area type (standard, stub, NSSA), represented by option flags (OPT_E, OPT_N) */ u8 summary; /* Import summaries to this stub/NSSA area, valid for ABR */ + u8 translator; /* Translator role, for NSSA ABR */ + u32 transint; /* Translator stability interval */ list patt_list; list net_list; /* List of aggregate networks for that area */ list stubnet_list; /* List of stub networks added to Router LSA */ @@ -736,10 +738,16 @@ struct ospf_area byte origrt; /* Rt lsa origination scheduled? */ byte trcap; /* Transit capability? */ byte marked; /* Used in OSPF reconfigure */ + byte translate; /* Translator state (TRANS_*), for NSSA ABR */ + timer *translator_timer; /* For NSSA translator switch */ struct proto_ospf *po; struct fib rtr; /* Routing tables for routers */ }; +#define TRANS_OFF 0 +#define TRANS_ON 1 +#define TRANS_WAIT 2 /* Waiting before the end of translation */ + struct proto_ospf { struct proto proto; -- cgit v1.2.3