diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-12-10 20:06:33 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-12-15 15:37:51 +0100 |
commit | fd193241e9d404cb9b730ea82ebbd93977b500f0 (patch) | |
tree | 7dced8697412c939eabf489e1bbae7ab7cc6b4f2 /zebra/zebra_mlag.h | |
parent | zebra: Allow zebra_mlag to compile with no j factor (diff) | |
download | frr-fd193241e9d404cb9b730ea82ebbd93977b500f0.tar.xz frr-fd193241e9d404cb9b730ea82ebbd93977b500f0.zip |
zebra: Do not build mlag protobuf support if version 3 is not avail
Older versions of protobuf-c do not support version 3 of the
protocol. Add a check into the system to see if we have
version 3 available and if so, compile it in.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mlag.h')
-rw-r--r-- | zebra/zebra_mlag.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/zebra/zebra_mlag.h b/zebra/zebra_mlag.h index b95f5a5d5..c35fa1556 100644 --- a/zebra/zebra_mlag.h +++ b/zebra/zebra_mlag.h @@ -26,7 +26,7 @@ #include "zclient.h" #include "zebra/zserv.h" -#ifdef HAVE_PROTOBUF +#ifdef HAVE_PROTOBUF_VERSION_3 #include "mlag/mlag.pb-c.h" #endif @@ -64,8 +64,6 @@ 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); -int32_t zebra_mlag_test_mlag_internal(const char *none, const char *primary, - const char *secondary); /* * ProtoBuffer Api's @@ -74,5 +72,4 @@ 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); -void zebra_mlag_vty_init(void); #endif |