summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_lsa.h
diff options
context:
space:
mode:
authorrgirada <rgirada@vmware.com>2020-08-22 19:49:30 +0200
committerrgirada <rgirada@vmware.com>2020-09-22 09:02:37 +0200
commitdf074ec33a0496d259b619bdcca77a394044aad6 (patch)
tree45008be54aa70cf4dcfcbd5da459a361703faa26 /ospfd/ospf_lsa.h
parentospfd: GR Helper functionality changes (diff)
downloadfrr-df074ec33a0496d259b619bdcca77a394044aad6.tar.xz
frr-df074ec33a0496d259b619bdcca77a394044aad6.zip
ospfd: GR helper exit scenarios
Description: The follwoing helper exit scenarios are handled. 1. Recv Max age grace LSA from RESTARTER. 2. Grace timer expiry. 3. Due to topo change if lsa check is enabled. Signed-off-by: Rajesh Girada <rgirada@vmware.com>
Diffstat (limited to 'ospfd/ospf_lsa.h')
-rw-r--r--ospfd/ospf_lsa.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ospfd/ospf_lsa.h b/ospfd/ospf_lsa.h
index 61afb169f..90f7b5363 100644
--- a/ospfd/ospf_lsa.h
+++ b/ospfd/ospf_lsa.h
@@ -224,6 +224,11 @@ struct as_external_lsa {
if (!(T)) \
(T) = thread_add_timer(master, (F), 0, 2)
+#define CHECK_LSA_TYPE_1_TO_5_OR_7(type) \
+ ((type == OSPF_ROUTER_LSA) || (type == OSPF_NETWORK_LSA) \
+ || (type == OSPF_SUMMARY_LSA) || (type == OSPF_ASBR_SUMMARY_LSA) \
+ || (type == OSPF_AS_EXTERNAL_LSA) || (type == OSPF_AS_NSSA_LSA))
+
/* Prototypes. */
/* XXX: Eek, time functions, similar are in lib/thread.c */
extern struct timeval int2tv(int);