]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_ptm.h
isisd: implement the 'lsp-too-large' notification
[mirror_frr.git] / zebra / zebra_ptm.h
index 0b41410beca69159e4adc76a3a3f6c879fa4b99b..d0cdaf0bce8781f7409d297a0c041ad43d42a973 100644 (file)
@@ -29,6 +29,7 @@ extern const char ZEBRA_PTM_SOCK_NAME[];
 #define ZEBRA_PTM_BFD_CLIENT_FLAG_REG   (1 << 1) /* client registered with BFD */
 
 #include "zebra/zserv.h"
+#include "zebra/interface.h"
 
 /* Zebra ptm context block */
 struct zebra_ptm_cb {
@@ -46,7 +47,7 @@ struct zebra_ptm_cb {
 
        int ptm_enable;
        int pid;
-       u_int8_t client_flags[ZEBRA_ROUTE_MAX];
+       uint8_t client_flags[ZEBRA_ROUTE_MAX];
 };
 
 #define ZEBRA_PTM_STATUS_DOWN 0
@@ -58,6 +59,15 @@ 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 \
+)
+
 void zebra_ptm_init(void);
 void zebra_ptm_finish(void);
 int zebra_ptm_connect(struct thread *t);
@@ -68,11 +78,13 @@ int zebra_ptm_get_enable_state(void);
 void zebra_ptm_bfd_dst_register(ZAPI_HANDLER_ARGS);
 void zebra_ptm_bfd_dst_deregister(ZAPI_HANDLER_ARGS);
 void zebra_ptm_bfd_client_register(ZAPI_HANDLER_ARGS);
+#if HAVE_BFDD > 0
+void zebra_ptm_bfd_dst_replay(ZAPI_HANDLER_ARGS);
+#endif /* HAVE_BFDD */
 
 void zebra_ptm_show_status(struct vty *vty, struct interface *ifp);
 void zebra_ptm_if_init(struct zebra_if *zebra_ifp);
 void zebra_ptm_if_set_ptm_state(struct interface *ifp,
                                struct zebra_if *zebra_ifp);
 void zebra_ptm_if_write(struct vty *vty, struct zebra_if *zebra_ifp);
-void zebra_ptm_bfd_client_deregister(int proto);
 #endif