summaryrefslogtreecommitdiff
path: root/zebra/zebra_mlag.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-10-14 17:15:09 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-10-14 17:15:09 +0000
commit6a597223d3bb63602bcdb9aa840702f1850cadcc (patch)
tree9f9aa64d9787973e9f67a0fcc84b90f2a3820af6 /zebra/zebra_mlag.h
parente34e314eb6ae60e06f2bcd61ce36b84c9abe2586 (diff)
Revert "Merge pull request #4885 from satheeshkarra/pim_mlag"
This reverts commit d563896dada99f3474d428f928786cbfde936fee, reversing changes made to 09ea1a40386f02a13cdb0462cc55af0d03f0c277.
Diffstat (limited to 'zebra/zebra_mlag.h')
-rw-r--r--zebra/zebra_mlag.h49
1 files changed, 6 insertions, 43 deletions
diff --git a/zebra/zebra_mlag.h b/zebra/zebra_mlag.h
index 015c94bf5c..90a5a41fa4 100644
--- a/zebra/zebra_mlag.h
+++ b/zebra/zebra_mlag.h
@@ -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.
@@ -23,55 +23,18 @@
#define __ZEBRA_MLAG_H__
#include "mlag.h"
-#include "zclient.h"
-#include "zebra/zserv.h"
-#ifdef HAVE_PROTOBUF
-#include "mlag/mlag.pb-c.h"
+#ifdef __cplusplus
+extern "C" {
#endif
-#define ZEBRA_MLAG_BUF_LIMIT 2048
-#define ZEBRA_MLAG_LEN_SIZE 4
-
-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;
-
-static inline void zebra_mlag_reset_read_buffer(void)
-{
- mlag_rd_buf_offset = 0;
-}
-
-enum zebra_mlag_state {
- MLAG_UP = 1,
- MLAG_DOWN = 2,
-};
-
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);
-
-/*
- * ProtoBuffer Api's
- */
-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,
- uint32_t len);
+#ifdef __cplusplus
+}
+#endif
#endif