diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2021-03-24 13:40:10 +0100 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2023-01-13 19:32:12 +0100 |
commit | e4c3da43cef0a20231bf63d0cf9b49be3d5b4df8 (patch) | |
tree | 31deebed31d452d3958668d4eb76430383266f55 /zebra | |
parent | lib,staticd: BFD integration CLI commands (diff) | |
download | frr-e4c3da43cef0a20231bf63d0cf9b49be3d5b4df8.tar.xz frr-e4c3da43cef0a20231bf63d0cf9b49be3d5b4df8.zip |
zebra: send BFD messages to staticd
Add logic to allow `zebra` to reroute BFD messages for `staticd`.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zebra_ptm.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/zebra/zebra_ptm.h b/zebra/zebra_ptm.h index f8e843cc7..2eed7f301 100644 --- a/zebra/zebra_ptm.h +++ b/zebra/zebra_ptm.h @@ -63,14 +63,12 @@ struct zebra_ptm_cb { #define ZEBRA_IF_PTM_ENABLE_ON 1 #define ZEBRA_IF_PTM_ENABLE_UNSPEC 2 -#define IS_BFD_ENABLED_PROTOCOL(protocol) ( \ - (protocol) == ZEBRA_ROUTE_BGP || \ - (protocol) == ZEBRA_ROUTE_OSPF || \ - (protocol) == ZEBRA_ROUTE_OSPF6 || \ - (protocol) == ZEBRA_ROUTE_ISIS || \ - (protocol) == ZEBRA_ROUTE_PIM || \ - (protocol) == ZEBRA_ROUTE_OPENFABRIC \ -) +#define IS_BFD_ENABLED_PROTOCOL(protocol) \ + ((protocol) == ZEBRA_ROUTE_BGP || (protocol) == ZEBRA_ROUTE_OSPF || \ + (protocol) == ZEBRA_ROUTE_OSPF6 || (protocol) == ZEBRA_ROUTE_ISIS || \ + (protocol) == ZEBRA_ROUTE_PIM || \ + (protocol) == ZEBRA_ROUTE_OPENFABRIC || \ + (protocol) == ZEBRA_ROUTE_STATIC) void zebra_ptm_init(void); void zebra_ptm_finish(void); |