summaryrefslogtreecommitdiffstats
path: root/lib/bfd.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-04-16 11:50:47 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-05-14 16:49:49 +0200
commitdcffea69124be68de2f87afbb656ba7e0ad8cdee (patch)
treed2594c5ffff8b265d0d7dee12b64cbc1bc9fcfe9 /lib/bfd.h
parentbfdd, lib, bgpd: add bfd cbit usage (diff)
downloadfrr-dcffea69124be68de2f87afbb656ba7e0ad8cdee.tar.xz
frr-dcffea69124be68de2f87afbb656ba7e0ad8cdee.zip
bgpd: add vty command to enable bfd control-plane-check-failure
new vty command is added: neighbor XXX bfd check-control-plane-failure this command will enforce the check of bgp controlplane, when bfd detects changes in the dataplane. - at configuration, the cbit will be set if that command is executed - at flapping time, if the command is configured and remote cbit is set accordingly, then the bfd event will be ignored. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/bfd.h')
-rw-r--r--lib/bfd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bfd.h b/lib/bfd.h
index 7f376a247..e4781f4ea 100644
--- a/lib/bfd.h
+++ b/lib/bfd.h
@@ -49,6 +49,7 @@ struct bfd_gbl {
#define BFD_FLAG_BFD_REG (1 << 1) /* Peer registered with BFD */
#define BFD_FLAG_BFD_TYPE_MULTIHOP (1 << 2) /* Peer registered with BFD as multihop */
#define BFD_FLAG_BFD_CBIT_ON (1 << 3) /* Peer registered with CBIT set to on */
+#define BFD_FLAG_BFD_CHECK_CONTROLPLANE (1 << 4) /* BFD and controlplane daemon are linked */
#define BFD_STATUS_UNKNOWN (1 << 0) /* BFD session status never received */
#define BFD_STATUS_DOWN (1 << 1) /* BFD session status is down */