summaryrefslogtreecommitdiffstats
path: root/src/vnet/udp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/udp')
-rw-r--r--src/vnet/udp/udp.c6
-rw-r--r--src/vnet/udp/udp_api.c2
-rw-r--r--src/vnet/udp/udp_local.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/vnet/udp/udp.c b/src/vnet/udp/udp.c
index 96189364b34..85a22a982b3 100644
--- a/src/vnet/udp/udp.c
+++ b/src/vnet/udp/udp.c
@@ -45,7 +45,7 @@ udp_connection_alloc (u32 thread_index)
pool_get_aligned (um->connections[thread_index], uc,
CLIB_CACHE_LINE_BYTES);
}
- memset (uc, 0, sizeof (*uc));
+ clib_memset (uc, 0, sizeof (*uc));
uc->c_c_index = uc - um->connections[thread_index];
uc->c_thread_index = thread_index;
uc->c_proto = TRANSPORT_PROTO_UDP;
@@ -58,7 +58,7 @@ udp_connection_free (udp_connection_t * uc)
{
pool_put (udp_main.connections[uc->c_thread_index], uc);
if (CLIB_DEBUG)
- memset (uc, 0xFA, sizeof (*uc));
+ clib_memset (uc, 0xFA, sizeof (*uc));
}
u32
@@ -76,7 +76,7 @@ udp_session_bind (u32 session_index, transport_endpoint_t * lcl)
return -1;
pool_get (um->listener_pool, listener);
- memset (listener, 0, sizeof (udp_connection_t));
+ clib_memset (listener, 0, sizeof (udp_connection_t));
listener->c_lcl_port = lcl->port;
listener->c_c_index = listener - um->listener_pool;
diff --git a/src/vnet/udp/udp_api.c b/src/vnet/udp/udp_api.c
index 05840ec4bc9..63186761181 100644
--- a/src/vnet/udp/udp_api.c
+++ b/src/vnet/udp/udp_api.c
@@ -51,7 +51,7 @@ send_udp_encap_details (const udp_encap_t * ue, vl_api_registration_t * reg,
vl_api_udp_encap_details_t *mp;
mp = vl_msg_api_alloc (sizeof (*mp));
- memset (mp, 0, sizeof (*mp));
+ clib_memset (mp, 0, sizeof (*mp));
mp->_vl_msg_id = ntohs (VL_API_UDP_ENCAP_DETAILS);
mp->context = context;
diff --git a/src/vnet/udp/udp_local.c b/src/vnet/udp/udp_local.c
index f0d95304f13..bb7305d8d03 100644
--- a/src/vnet/udp/udp_local.c
+++ b/src/vnet/udp/udp_local.c
@@ -583,7 +583,7 @@ unformat_udp_header (unformat_input_t * input, va_list * args)
udp = p;
}
- memset (udp, 0, sizeof (udp[0]));
+ clib_memset (udp, 0, sizeof (udp[0]));
if (unformat (input, "src-port %d dst-port %d", &src_port, &dst_port))
{
udp->src_port = clib_host_to_net_u16 (src_port);