aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/flow
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-10-17 10:38:51 -0400
committerDamjan Marion <dmarion@me.com>2018-10-23 13:06:46 +0000
commitb7b929931a07fbb27b43d5cd105f366c3e29807e (patch)
tree438681c89738802dbb5d339715b96ea2c31bafb4 /src/vnet/flow
parentb9a4c445c1d4e9cdab476a8e1fb8a46ff0fc6080 (diff)
c11 safe string handling support
Change-Id: Ied34720ca5a6e6e717eea4e86003e854031b6eab Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/flow')
-rw-r--r--src/vnet/flow/flow.c2
-rw-r--r--src/vnet/flow/flow_cli.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/flow/flow.c b/src/vnet/flow/flow.c
index c4f57a21965..485a845e5ee 100644
--- a/src/vnet/flow/flow.c
+++ b/src/vnet/flow/flow.c
@@ -82,7 +82,7 @@ vnet_flow_del (vnet_main_t * vnm, u32 flow_index)
/* *INDENT-ON* */
hash_free (f->private_data);
- memset (f, 0, sizeof (*f));
+ clib_memset (f, 0, sizeof (*f));
pool_put (fm->global_flow_pool, f);
return 0;
}
diff --git a/src/vnet/flow/flow_cli.c b/src/vnet/flow/flow_cli.c
index 27f2d386279..0e10c90f55b 100644
--- a/src/vnet/flow/flow_cli.c
+++ b/src/vnet/flow/flow_cli.c
@@ -278,7 +278,7 @@ test_flow (vlib_main_t * vm, unformat_input_t * input,
int rv;
u8 prot;
- memset (&flow, 0, sizeof (vnet_flow_t));
+ clib_memset (&flow, 0, sizeof (vnet_flow_t));
flow.index = ~0;
flow.actions = 0;
flow.ip4_n_tuple.protocol = ~0;