summaryrefslogtreecommitdiffstats
path: root/src/vlibmemory/memory_vlib.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-10-03 14:26:10 -0400
committerDave Barach <openvpp@barachs.net>2017-10-03 23:53:35 +0000
commit780fc39506759127f59840e37be9c03d278a2f6b (patch)
tree930658efd46abb9dbadb6fd5141640760e7b629e /src/vlibmemory/memory_vlib.c
parent5a6508d7269266b4a3ecacdd197ea3514a0c0e28 (diff)
api: fix internal client registrations
Makes sure vlib_rp and shmem_hdr are initialized for internal registrations. They are needed for keepalive msg exchanges. Change-Id: I805dec2d2aa84b1efdc1fdd692fc1d94389b776e Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vlibmemory/memory_vlib.c')
-rw-r--r--src/vlibmemory/memory_vlib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlibmemory/memory_vlib.c b/src/vlibmemory/memory_vlib.c
index c9b3183f592..184a0f8c0a9 100644
--- a/src/vlibmemory/memory_vlib.c
+++ b/src/vlibmemory/memory_vlib.c
@@ -160,6 +160,8 @@ vl_api_memclnt_create_internal (char *name, unix_shared_memory_queue_t * q)
memset (regp, 0, sizeof (*regp));
regp->registration_type = REGISTRATION_TYPE_SHMEM;
regp->vl_api_registration_pool_index = regpp - am->vl_clients;
+ regp->vlib_rp = svm;
+ regp->shmem_hdr = am->shmem_hdr;
regp->vl_input_queue = q;
regp->name = format (0, "%s%c", name, 0);