aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/devices/virtio/node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/devices/virtio/node.c b/src/vnet/devices/virtio/node.c
index 4a2e305a22e..be2405bb3b9 100644
--- a/src/vnet/devices/virtio/node.c
+++ b/src/vnet/devices/virtio/node.c
@@ -122,7 +122,7 @@ more:
* initialized.
*/
b->current_data = -hdr_sz;
- memset (vlib_buffer_get_current (b), 0, hdr_sz);
+ clib_memset (vlib_buffer_get_current (b), 0, hdr_sz);
d->addr =
((type == VIRTIO_IF_TYPE_PCI) ? vlib_buffer_get_current_pa (vm,
b) :
@@ -188,7 +188,7 @@ more:
* initialized.
*/
b->current_data = -hdr_sz;
- memset (vlib_buffer_get_current (b), 0, hdr_sz);
+ clib_memset (vlib_buffer_get_current (b), 0, hdr_sz);
d->addr =
((type == VIRTIO_IF_TYPE_PCI) ? vlib_buffer_get_current_pa (vm,
b) :