proxy_connect_args_t *pa = (proxy_connect_args_t *) data;
vnet_connect_args_t a;
+ memset (&a, 0, sizeof (a));
a.api_context = pa->api_context;
a.app_index = pa->app_index;
a.uri = pa->uri;
if (ps)
{
if (CLIB_DEBUG > 0)
- memset (ps, 0xFE, sizeof (*ps));
+ clib_memset (ps, 0xFE, sizeof (*ps));
pool_put (pm->sessions, ps);
}
}
static int
-proxy_add_segment_callback (u32 client_index, const ssvm_private_t * sp)
+proxy_add_segment_callback (u32 client_index, u64 segment_handle)
{
clib_warning ("called...");
return -1;
/* $$$ your message in this space: parse url, etc. */
- memset (a, 0, sizeof (*a));
+ clib_memset (a, 0, sizeof (*a));
clib_spinlock_lock_if_init (&pm->sessions_lock);
pool_get (pm->sessions, ps);
- memset (ps, 0, sizeof (*ps));
+ clib_memset (ps, 0, sizeof (*ps));
ps->server_rx_fifo = rx_fifo;
ps->server_tx_fifo = tx_fifo;
ps->vpp_server_handle = session_handle (s);
vnet_app_attach_args_t _a, *a = &_a;
u32 segment_size = 512 << 20;
- memset (a, 0, sizeof (*a));
- memset (options, 0, sizeof (options));
+ clib_memset (a, 0, sizeof (*a));
+ clib_memset (options, 0, sizeof (options));
if (pm->private_segment_size)
segment_size = pm->private_segment_size;
vnet_app_attach_args_t _a, *a = &_a;
u64 options[16];
- memset (a, 0, sizeof (*a));
- memset (options, 0, sizeof (options));
+ clib_memset (a, 0, sizeof (*a));
+ clib_memset (options, 0, sizeof (options));
a->api_client_index = pm->active_open_client_index;
a->session_cb_vft = &active_open_clients;
{
proxy_main_t *pm = &proxy_main;
vnet_bind_args_t _a, *a = &_a;
- memset (a, 0, sizeof (*a));
+ clib_memset (a, 0, sizeof (*a));
a->app_index = pm->server_app_index;
a->uri = (char *) pm->server_uri;
return vnet_bind_uri (a);