diff options
author | Christian Hopps <chopps@labn.net> | 2023-04-25 15:52:15 +0200 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2023-05-28 11:13:22 +0200 |
commit | 528b3266168415c04822b50eb7133422067cd219 (patch) | |
tree | 0317ce74618b1aff5f9c4430e319c82fc1a82496 /lib/mgmt_fe_client.c | |
parent | lib: remove write-on-off, just requeue to the back of the queue (diff) | |
download | frr-528b3266168415c04822b50eb7133422067cd219.tar.xz frr-528b3266168415c04822b50eb7133422067cd219.zip |
lib: mgmt msg: add version to messages
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/mgmt_fe_client.c')
-rw-r--r-- | lib/mgmt_fe_client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mgmt_fe_client.c b/lib/mgmt_fe_client.c index 37b87dee9..0458bc1c7 100644 --- a/lib/mgmt_fe_client.c +++ b/lib/mgmt_fe_client.c @@ -140,7 +140,7 @@ static int mgmt_fe_client_send_msg(struct mgmt_fe_client_ctx *client_ctx, } int rv = mgmt_msg_send_msg( - &client_ctx->mstate, fe_msg, + &client_ctx->mstate, MGMT_MSG_VERSION_PROTOBUF, fe_msg, mgmtd__fe_message__get_packed_size(fe_msg), (size_t(*)(void *, void *))mgmtd__fe_message__pack, MGMTD_DBG_FE_CLIENT_CHECK()); @@ -614,8 +614,8 @@ mgmt_fe_client_handle_msg(struct mgmt_fe_client_ctx *client_ctx, return 0; } -static void mgmt_fe_client_process_msg(void *user_ctx, uint8_t *data, - size_t len) +static void mgmt_fe_client_process_msg(uint8_t version, void *user_ctx, + uint8_t *data, size_t len) { struct mgmt_fe_client_ctx *client_ctx = user_ctx; Mgmtd__FeMessage *fe_msg; |