aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlibmemory/vlibapi_test.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-09-15 09:02:08 -0700
committerOle Tr�an <otroan@employees.org>2021-09-27 08:01:44 +0000
commita1400cecb8d8b423e83bd584e59fa817b8a243d9 (patch)
treefd812dd3cd4818d69ada7fc1972edc7fd8f10081 /src/vlibmemory/vlibapi_test.c
parent400f23f9d02552fb650d6de46bef7ba42b3482fe (diff)
misc: api move continued
Move control ping and change dependencies from vpe.api_types to memclnt.api_types Type: refactor Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I9f8bc442e28738c48d64d1f6794082c8c4f5725b
Diffstat (limited to 'src/vlibmemory/vlibapi_test.c')
-rw-r--r--src/vlibmemory/vlibapi_test.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/vlibmemory/vlibapi_test.c b/src/vlibmemory/vlibapi_test.c
index 820096ab80d..c91cd7942f9 100644
--- a/src/vlibmemory/vlibapi_test.c
+++ b/src/vlibmemory/vlibapi_test.c
@@ -449,6 +449,31 @@ api_get_node_graph (vat_main_t *vam)
return ret;
}
+static void
+vl_api_control_ping_reply_t_handler (vl_api_control_ping_reply_t *mp)
+{
+ vat_main_t *vam = &vat_main;
+ i32 retval = ntohl (mp->retval);
+ if (vam->async_mode)
+ {
+ vam->async_errors += (retval < 0);
+ }
+ else
+ {
+ vam->retval = retval;
+ vam->result_ready = 1;
+ }
+ if (vam->socket_client_main)
+ vam->socket_client_main->control_pings_outstanding--;
+}
+
+static int
+api_control_ping (vat_main_t *vam)
+{
+ // not yet implemented
+ return -1;
+}
+
#define VL_API_LOCAL_SETUP_MESSAGE_ID_TABLE local_setup_message_id_table
static void
local_setup_message_id_table (vat_main_t *vam)