summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_top.h
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d/ospf6_top.h')
-rw-r--r--ospf6d/ospf6_top.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/ospf6d/ospf6_top.h b/ospf6d/ospf6_top.h
index 7980659e68..08b884f23a 100644
--- a/ospf6d/ospf6_top.h
+++ b/ospf6d/ospf6_top.h
@@ -40,6 +40,15 @@ enum {
struct ospf6_redist {
uint8_t instance;
+
+ /* Redistribute metric info. */
+ struct {
+ int type; /* External metric type (E1 or E2). */
+ int value; /* Value for static metric (24-bit).
+ * -1 means metric value is not set.
+ */
+ } dmetric;
+
/* For redistribute route map. */
struct {
char *name;
@@ -83,13 +92,18 @@ struct ospf6 {
uint32_t external_id;
/* OSPF6 redistribute configuration */
- struct list *redist[ZEBRA_ROUTE_MAX];
+ struct list *redist[ZEBRA_ROUTE_MAX + 1];
uint8_t flag;
+ int redistribute; /* Num of redistributed protocols. */
+
/* Configuration bitmask, refer to enum above */
uint8_t config_flags;
-
+ int default_originate; /* Default information originate. */
+#define DEFAULT_ORIGINATE_NONE 0
+#define DEFAULT_ORIGINATE_ZEBRA 1
+#define DEFAULT_ORIGINATE_ALWAYS 2
/* LSA timer parameters */
unsigned int lsa_minarrival; /* LSA minimum arrival in milliseconds. */
@@ -138,6 +152,7 @@ DECLARE_QOBJ_TYPE(ospf6);
#define OSPF6_DISABLED 0x01
#define OSPF6_STUB_ROUTER 0x02
+#define OSPF6_FLAG_ASBR 0x04
/* global pointer for OSPF top data structure */
extern struct ospf6 *ospf6;