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
/
ethernet
/
interface.c
diff --git
a/src/vnet/ethernet/interface.c
b/src/vnet/ethernet/interface.c
index
e0d1295
..
2cb137c
100644
(file)
--- a/
src/vnet/ethernet/interface.c
+++ b/
src/vnet/ethernet/interface.c
@@
-152,7
+152,7
@@
ethernet_build_rewrite (vnet_main_t * vnm,
if (dst_address)
clib_memcpy (h->dst_address, dst_address, sizeof (h->dst_address));
else
if (dst_address)
clib_memcpy (h->dst_address, dst_address, sizeof (h->dst_address));
else
-
memset (h->dst_address, ~0, sizeof (h->dst_address));
/* broadcast */
+
clib_memset (h->dst_address, ~0, sizeof (h->dst_address));
/* broadcast */
}
if (PREDICT_FALSE (!is_p2p) && sub_sw->sub.eth.flags.one_tag)
}
if (PREDICT_FALSE (!is_p2p) && sub_sw->sub.eth.flags.one_tag)
@@
-750,7
+750,7
@@
vnet_create_loopback_interface (u32 * sw_if_indexp, u8 * mac_address,
*sw_if_indexp = (u32) ~ 0;
*sw_if_indexp = (u32) ~ 0;
- memset (address, 0, sizeof (address));
+
clib_
memset (address, 0, sizeof (address));
/*
* Allocate a loopback instance. Either select on dynamically
/*
* Allocate a loopback instance. Either select on dynamically
@@
-822,7
+822,7
@@
create_simulated_ethernet_interfaces (vlib_main_t * vm,
u8 is_specified = 0;
u32 user_instance = 0;
u8 is_specified = 0;
u32 user_instance = 0;
- memset (mac_address, 0, sizeof (mac_address));
+
clib_
memset (mac_address, 0, sizeof (mac_address));
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
{