summaryrefslogtreecommitdiffstats
path: root/src/plugins/memif/memif_test.c
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-12-07 00:39:49 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-12-07 11:46:04 +0000
commit3f2d5718b824a10a247ef08e23824d365f2f1626 (patch)
treeda4dba0d78b9c66a6c5ede06b61c4fc64970b7a1 /src/plugins/memif/memif_test.c
parent7929f9f5c612b22097d874001e93f5bb38e5ed4f (diff)
lacp: fix control_ping from plugins
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I030f75234a346ef6a20640c1a0ed65f4934867f2
Diffstat (limited to 'src/plugins/memif/memif_test.c')
-rw-r--r--src/plugins/memif/memif_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/memif/memif_test.c b/src/plugins/memif/memif_test.c
index d2ab7e0844d..05f5c29b957 100644
--- a/src/plugins/memif/memif_test.c
+++ b/src/plugins/memif/memif_test.c
@@ -304,6 +304,8 @@ api_memif_dump (vat_main_t * vam)
S (mp);
/* Use a control ping for synchronization */
+ if (!mm->ping_id)
+ mm->ping_id = vl_msg_api_get_msg_index ((u8 *) (VL_API_CONTROL_PING_CRC));
mp_ping = vl_msg_api_alloc_as_if_client (sizeof (*mp_ping));
mp_ping->_vl_msg_id = htons (mm->ping_id);
mp_ping->client_index = vam->my_client_index;
@@ -356,6 +358,8 @@ api_memif_socket_filename_dump (vat_main_t * vam)
S (mp);
/* Use a control ping for synchronization */
+ if (!mm->ping_id)
+ mm->ping_id = vl_msg_api_get_msg_index ((u8 *) (VL_API_CONTROL_PING_CRC));
mp_ping = vl_msg_api_alloc_as_if_client (sizeof (*mp_ping));
mp_ping->_vl_msg_id = htons (mm->ping_id);
mp_ping->client_index = vam->my_client_index;