diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2021-03-03 17:22:47 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2021-03-23 10:18:42 -0300 |
| commit | 659f4e40dd08d5e44b5b223206ab3e720c1fd1f1 (patch) | |
| tree | caec9c2a351ae8c30884b363872aa3f7a7fab486 /ospfd/ospf_main.c | |
| parent | cab054bfd25ca223f4aa0db7da480afd08444b44 (diff) | |
ospfd: rework BFD integration
Use new BFD API to integrate with OSPFv2.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_main.c')
| -rw-r--r-- | ospfd/ospf_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c index 9ae2e8b043..d23dea0ca1 100644 --- a/ospfd/ospf_main.c +++ b/ospfd/ospf_main.c @@ -22,6 +22,7 @@ #include <zebra.h> #include <lib/version.h> +#include "bfd.h" #include "getopt.h" #include "thread.h" #include "prefix.h" @@ -98,6 +99,7 @@ static void sighup(void) static void sigint(void) { zlog_notice("Terminating on signal"); + bfd_protocol_integration_set_shutdown(true); ospf_terminate(); exit(0); } @@ -214,7 +216,7 @@ int main(int argc, char **argv) ospf_vty_clear_init(); /* OSPF BFD init */ - ospf_bfd_init(); + ospf_bfd_init(master); /* OSPF LDP IGP Sync init */ ospf_ldp_sync_init(); |
