aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlibsocket/sockclnt_vlib.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-01-05 03:20:25 -0800
committerDave Barach <openvpp@barachs.net>2018-01-09 18:33:08 +0000
commite86a8edd3c14fb41ace2a12efd17bc7772bf623f (patch)
tree480219864cadd743fdb95c21379aeaf88a985e23 /src/vlibsocket/sockclnt_vlib.c
parent4363ad6c96b5641fca1b16c5a6ec22e2364adcfd (diff)
api: refactor vlibmemory
- separate client/server code for both memory and socket apis - separate memory api code from generic vlib api code - move unix_shared_memory_fifo to svm and rename to svm_fifo_t - overall declutter Change-Id: I90cdd98ff74d0787d58825b914b0f1eafcfa4dc2 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vlibsocket/sockclnt_vlib.c')
-rw-r--r--src/vlibsocket/sockclnt_vlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vlibsocket/sockclnt_vlib.c b/src/vlibsocket/sockclnt_vlib.c
index 0df32d527ed..34470c56266 100644
--- a/src/vlibsocket/sockclnt_vlib.c
+++ b/src/vlibsocket/sockclnt_vlib.c
@@ -65,7 +65,7 @@ vl_api_sockclnt_delete_reply_t_handler (vl_api_sockclnt_delete_reply_t * mp)
vl_api_registration_t *rp = socket_main.current_rp;
clib_file_del (fm, uf);
- vl_free_socket_registration_index (rp->vl_api_registration_pool_index);
+ vl_socket_free_registration_index (rp->vl_api_registration_pool_index);
}
u32
@@ -143,7 +143,7 @@ sockclnt_open_index (char *client_name, char *hostname, int port)
}
strncpy ((char *) mp->name, my_hostname, sizeof (mp->name) - 1);
- vl_msg_api_send (rp, (u8 *) mp);
+ vl_api_send_msg (rp, (u8 *) mp);
return rp - socket_main.registration_pool;
}
@@ -165,7 +165,7 @@ sockclnt_close_index (u32 index)
mp->_vl_msg_id = ntohs (VL_API_SOCKCLNT_DELETE);
mp->handle = rp->server_handle;
mp->index = rp->server_index;
- vl_msg_api_send (rp, (u8 *) mp);
+ vl_api_send_msg (rp, (u8 *) mp);
}
vl_api_registration_t *