diff options
-rw-r--r-- | src/plugins/vmxnet3/vmxnet3_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/vmxnet3/vmxnet3_test.c b/src/plugins/vmxnet3/vmxnet3_test.c index fbd675da5de..6fa9373486c 100644 --- a/src/plugins/vmxnet3/vmxnet3_test.c +++ b/src/plugins/vmxnet3/vmxnet3_test.c @@ -173,6 +173,9 @@ api_vmxnet3_dump (vat_main_t * vam) S (mp); /* Use a control ping for synchronization */ + if (!vxm->ping_id) + vxm->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 (vxm->ping_id); mp_ping->client_index = vam->my_client_index; |