#include "stream.h"
#include "zebra/zserv.h"
#include "zebra/zapi_msg.h"
+#include "zebra/zebra_ptm.h"
#include "zebra/zebra_ptm_redistribute.h"
#include "zebra/zebra_memory.h"
struct zserv *client;
for (ALL_LIST_ELEMENTS(zebrad.client_list, node, nnode, client)) {
- /* Supporting for OSPF, BGP and PIM */
- if (client->proto != ZEBRA_ROUTE_OSPF
- && client->proto != ZEBRA_ROUTE_BGP
- && client->proto != ZEBRA_ROUTE_OSPF6
- && client->proto != ZEBRA_ROUTE_PIM)
+ if (!IS_BFD_ENABLED_PROTOCOL(client->proto))
continue;
/* Notify to the protocol daemons. */
struct zserv *client;
for (ALL_LIST_ELEMENTS(zebrad.client_list, node, nnode, client)) {
- /* Supporting for BGP */
- if ((client->proto != ZEBRA_ROUTE_BGP)
- && (client->proto != ZEBRA_ROUTE_OSPF)
- && (client->proto != ZEBRA_ROUTE_OSPF6)
- && (client->proto != ZEBRA_ROUTE_PIM))
+ if (!IS_BFD_ENABLED_PROTOCOL(client->proto))
continue;
/* Notify to the protocol daemons. */