summaryrefslogtreecommitdiffstats
path: root/ospfd/ospfd.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2021-03-03 21:22:47 +0100
committerRafael Zalamena <rzalamena@opensourcerouting.org>2021-03-23 14:18:42 +0100
commit659f4e40dd08d5e44b5b223206ab3e720c1fd1f1 (patch)
treecaec9c2a351ae8c30884b363872aa3f7a7fab486 /ospfd/ospfd.c
parentlib: small BFD session notifier improvement (diff)
downloadfrr-659f4e40dd08d5e44b5b223206ab3e720c1fd1f1.tar.xz
frr-659f4e40dd08d5e44b5b223206ab3e720c1fd1f1.zip
ospfd: rework BFD integration
Use new BFD API to integrate with OSPFv2. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospfd.c')
-rw-r--r--ospfd/ospfd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c
index 1a1861fc5..9856e6013 100644
--- a/ospfd/ospfd.c
+++ b/ospfd/ospfd.c
@@ -42,6 +42,7 @@
#include "ldp_sync.h"
#include "ospfd/ospfd.h"
+#include "ospfd/ospf_bfd.h"
#include "ospfd/ospf_network.h"
#include "ospfd/ospf_interface.h"
#include "ospfd/ospf_ism.h"
@@ -1931,6 +1932,9 @@ static void ospf_nbr_nbma_add(struct ospf_nbr_nbma *nbr_nbma,
nbr_nbma->nbr = nbr;
+ /* Configure BFD if interface has it. */
+ ospf_neighbor_bfd_apply(nbr);
+
OSPF_NSM_EVENT_EXECUTE(nbr, NSM_Start);
}
}