]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_mlag.h
Merge pull request #5793 from ton31337/fix/formatting_show_bgp_summary_failed
[mirror_frr.git] / zebra / zebra_mlag.h
index 015c94bf5c5328ec74a8b32df9789e6553e4e1b3..c35fa15561c6745671e7e97c980684d7de766bc0 100644 (file)
@@ -1,5 +1,5 @@
 /* Zebra mlag header.
- * Copyright (C) 2019 Cumulus Networks, Inc.
+ * Copyright (C) 2018 Cumulus Networks, Inc.
  *                    Donald Sharp
  *
  * This file is part of FRR.
 #include "zclient.h"
 #include "zebra/zserv.h"
 
-#ifdef HAVE_PROTOBUF
+#ifdef HAVE_PROTOBUF_VERSION_3
 #include "mlag/mlag.pb-c.h"
 #endif
 
 #define ZEBRA_MLAG_BUF_LIMIT 2048
 #define ZEBRA_MLAG_LEN_SIZE 4
 
+DECLARE_HOOK(zebra_mlag_private_write_data,
+            (uint8_t *data, uint32_t len), (data, len))
+DECLARE_HOOK(zebra_mlag_private_monitor_state, (), ())
+DECLARE_HOOK(zebra_mlag_private_open_channel, (), ())
+DECLARE_HOOK(zebra_mlag_private_close_channel, (), ())
+DECLARE_HOOK(zebra_mlag_private_cleanup_data, (), ())
+
 extern uint8_t mlag_wr_buffer[ZEBRA_MLAG_BUF_LIMIT];
 extern uint8_t mlag_rd_buffer[ZEBRA_MLAG_BUF_LIMIT];
 extern uint32_t mlag_rd_buf_offset;
@@ -49,21 +56,13 @@ enum zebra_mlag_state {
 
 void zebra_mlag_init(void);
 void zebra_mlag_terminate(void);
-
 enum mlag_role zebra_mlag_get_role(void);
-
 void zebra_mlag_client_register(ZAPI_HANDLER_ARGS);
-
 void zebra_mlag_client_unregister(ZAPI_HANDLER_ARGS);
-
 void zebra_mlag_forward_client_msg(ZAPI_HANDLER_ARGS);
-
 void zebra_mlag_send_register(void);
-
 void zebra_mlag_send_deregister(void);
-
 void zebra_mlag_handle_process_state(enum zebra_mlag_state state);
-
 void zebra_mlag_process_mlag_data(uint8_t *data, uint32_t len);
 
 /*
@@ -71,7 +70,6 @@ void zebra_mlag_process_mlag_data(uint8_t *data, uint32_t len);
  */
 int zebra_mlag_protobuf_encode_client_data(struct stream *s,
                                           uint32_t *msg_type);
-int zebra_mlag_protobuf_decode_message(struct stream **s, uint8_t *data,
+int zebra_mlag_protobuf_decode_message(struct stream *s, uint8_t *data,
                                       uint32_t len);
-
 #endif