summaryrefslogtreecommitdiffstats
path: root/vlib-api
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-12-14 14:49:55 -0500
committerDamjan Marion <dmarion.lists@gmail.com>2016-12-23 17:38:09 +0000
commitfc262a0cf77e3c14ff1d6c006e7eac70999b926f (patch)
treecdd49ff1071660af24c8d5b4d11425681ae870a3 /vlib-api
parent6c7440ca95fe3508c083ac4d2ecf7eca459b7f8e (diff)
Build vpp_api_test binary API debug CLI into vpp
Change-Id: I60ce73a62d8632a644fbfdfbe13ff8ddbb959233 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vlib-api')
-rw-r--r--vlib-api/vlibmemory/memory_shared.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vlib-api/vlibmemory/memory_shared.c b/vlib-api/vlibmemory/memory_shared.c
index 6adc69fc05f..d8d3200485e 100644
--- a/vlib-api/vlibmemory/memory_shared.c
+++ b/vlib-api/vlibmemory/memory_shared.c
@@ -801,6 +801,11 @@ unix_shared_memory_queue_t *
vl_api_client_index_to_input_queue (u32 index)
{
vl_api_registration_t *regp;
+ api_main_t *am = &api_main;
+
+ /* Special case: vlib trying to send itself a message */
+ if (index == (u32) ~ 0)
+ return (am->shmem_hdr->vl_input_queue);
regp = vl_api_client_index_to_registration_internal (index);
if (!regp)