summaryrefslogtreecommitdiff
path: root/bfdd/bfd.h
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2020-05-29 17:44:54 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2020-05-29 17:55:40 -0300
commitf3e1d2241e0e96de95640bd8ecef5ff61843f3a5 (patch)
tree8f01dcabe39df0aa7b05a3b18542e18a64828e33 /bfdd/bfd.h
parent95a99382cbeb756344c02aef44f862abee53c3b8 (diff)
bfdd: don't update peers settings on shutdown
During the shutdown phase don't attempt to apply settings to peers as it is useless and will crash if the peer hash is gone. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'bfdd/bfd.h')
-rw-r--r--bfdd/bfd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/bfdd/bfd.h b/bfdd/bfd.h
index 5984662a01..492334a670 100644
--- a/bfdd/bfd.h
+++ b/bfdd/bfd.h
@@ -429,6 +429,12 @@ struct bfd_global {
struct zebra_privs_t bfdd_privs;
+ /**
+ * Daemon is exit()ing? Use this to avoid actions that expect a
+ * running system or to avoid unnecessary operations when quitting.
+ */
+ bool bg_shutdown;
+
/* Debug options. */
/* Show all peer state changes events. */
bool debug_peer_event;