From 85840d4c03552a69927b666774fa39921e7b1047 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 9 Jul 2019 03:31:54 +0200 Subject: 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. --- proto/ospf/ospf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'proto/ospf/ospf.h') 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 */ -- cgit v1.2.3