Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
c11 safe string handling support
[vpp.git]
/
src
/
vnet
/
session-apps
/
proxy.c
diff --git
a/src/vnet/session-apps/proxy.c
b/src/vnet/session-apps/proxy.c
index
6260ad3
..
f7896a5
100644
(file)
--- a/
src/vnet/session-apps/proxy.c
+++ b/
src/vnet/session-apps/proxy.c
@@
-116,7
+116,7
@@
delete_proxy_session (stream_session_t * s, int is_active_open)
if (ps)
{
if (CLIB_DEBUG > 0)
if (ps)
{
if (CLIB_DEBUG > 0)
- memset (ps, 0xFE, sizeof (*ps));
+
clib_
memset (ps, 0xFE, sizeof (*ps));
pool_put (pm->sessions, ps);
}
pool_put (pm->sessions, ps);
}
@@
-235,11
+235,11
@@
proxy_rx_callback (stream_session_t * s)
/* $$$ your message in this space: parse url, etc. */
/* $$$ 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);
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);
ps->server_rx_fifo = rx_fifo;
ps->server_tx_fifo = tx_fifo;
ps->vpp_server_handle = session_handle (s);
@@
-397,8
+397,8
@@
proxy_server_attach ()
vnet_app_attach_args_t _a, *a = &_a;
u32 segment_size = 512 << 20;
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;
if (pm->private_segment_size)
segment_size = pm->private_segment_size;
@@
-431,8
+431,8
@@
active_open_attach (void)
vnet_app_attach_args_t _a, *a = &_a;
u64 options[16];
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;
a->api_client_index = pm->active_open_client_index;
a->session_cb_vft = &active_open_clients;
@@
-463,7
+463,7
@@
proxy_server_listen ()
{
proxy_main_t *pm = &proxy_main;
vnet_bind_args_t _a, *a = &_a;
{
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);
a->app_index = pm->server_app_index;
a->uri = (char *) pm->server_uri;
return vnet_bind_uri (a);