summaryrefslogtreecommitdiff
path: root/proto/ospf/ospf.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2019-07-09 03:31:54 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-07-09 03:39:19 +0200
commit85840d4c03552a69927b666774fa39921e7b1047 (patch)
tree83602f31fd98940bd74713017e9b26deb8ac6e58 /proto/ospf/ospf.h
parent05e3933c06b488e71c9c149c25aec9c733a8bd1f (diff)
OSPF: Fix handling of external routes on graceful restart
We need to flush learned external LSAs a bit later than other LSAs (after first feed after end of the graceful restart) to avoid flap of external routes.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r--proto/ospf/ospf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index aac13512..3fd1c363 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -223,7 +223,8 @@ struct ospf_proto
int areano; /* Number of area I belong to */
int padj; /* Number of neighbors in Exchange or Loading state */
int gr_count; /* Number of neighbors in graceful restart state */
- int gr_recovery; /* Graceful restart recovery is active */
+ u8 gr_recovery; /* Graceful restart recovery is active */
+ u8 gr_cleanup; /* GR cleanup scheduled */
btime gr_timeout; /* The end time of grace restart recovery */
struct fib rtf; /* Routing table */
struct idm idm; /* OSPFv3 LSA ID map */