summaryrefslogtreecommitdiffstats
path: root/src/plugins/lacp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lacp')
-rw-r--r--src/plugins/lacp/cli.c2
-rw-r--r--src/plugins/lacp/lacp.c4
-rw-r--r--src/plugins/lacp/lacp_api.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/lacp/cli.c b/src/plugins/lacp/cli.c
index c6184b6937e..d210139c4b4 100644
--- a/src/plugins/lacp/cli.c
+++ b/src/plugins/lacp/cli.c
@@ -33,7 +33,7 @@ lacp_dump_ifs (lacp_interface_details_t ** out_lacpifs)
if ((sif->port_enabled == 0) || (sif->lacp_enabled == 0))
continue;
vec_add2(r_lacpifs, lacpif, 1);
- memset (lacpif, 0, sizeof (*lacpif));
+ clib_memset (lacpif, 0, sizeof (*lacpif));
lacpif->sw_if_index = sif->sw_if_index;
hi = vnet_get_hw_interface (vnm, sif->hw_if_index);
clib_memcpy(lacpif->interface_name, hi->name,
diff --git a/src/plugins/lacp/lacp.c b/src/plugins/lacp/lacp.c
index 7bd6e374dab..473458af4e4 100644
--- a/src/plugins/lacp/lacp.c
+++ b/src/plugins/lacp/lacp.c
@@ -216,7 +216,7 @@ lacp_periodic_init (vlib_main_t * vm)
/* Create the ethernet lacp packet template */
- memset (&h, 0, sizeof (h));
+ clib_memset (&h, 0, sizeof (h));
memcpy (h.ethernet.dst_address, dst, sizeof (h.ethernet.dst_address));
@@ -253,7 +253,7 @@ lacp_periodic_init (vlib_main_t * vm)
/* Create the ethernet marker protocol packet template */
- memset (&m, 0, sizeof (m));
+ clib_memset (&m, 0, sizeof (m));
memcpy (m.ethernet.dst_address, dst, sizeof (m.ethernet.dst_address));
diff --git a/src/plugins/lacp/lacp_api.c b/src/plugins/lacp/lacp_api.c
index 129c3605527..8bb6fa90eb0 100644
--- a/src/plugins/lacp/lacp_api.c
+++ b/src/plugins/lacp/lacp_api.c
@@ -99,7 +99,7 @@ lacp_send_sw_interface_details (vl_api_registration_t * reg,
vl_api_sw_interface_lacp_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 = htons (VL_API_SW_INTERFACE_LACP_DETAILS + lm->msg_id_base);
mp->sw_if_index = htonl (lacp_if->sw_if_index);