summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Lenco <milan.lenco@pantheon.tech>2017-04-26 15:02:16 +0200
committerMilan Lenco <milan.lenco@pantheon.tech>2017-04-26 15:02:16 +0200
commitd351fbf2fc95a6cf1838cd8b72a1a8bdff3cdd40 (patch)
tree2b791db517369d7bc2cc8e3c1e95ab7f2fa96041
parent08cf5f2b17876111dc59de4fc816e952c27de730 (diff)
Temporary workaround for the bug VPP-698
Change-Id: Ie0548868154ef5e9bdc7a57a16f68284683ad9a5 Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
-rw-r--r--src/plugins/memif/memif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/memif/memif.c b/src/plugins/memif/memif.c
index f4358626dde..249d8869582 100644
--- a/src/plugins/memif/memif.c
+++ b/src/plugins/memif/memif.c
@@ -368,7 +368,7 @@ memif_conn_fd_read_ready (unix_file_t * uf)
else if (cmsg->cmsg_level == SOL_SOCKET
&& cmsg->cmsg_type == SCM_RIGHTS)
{
- clib_memcpy (fd_array, CMSG_DATA (cmsg), sizeof (fd_array));
+ memcpy (fd_array, CMSG_DATA (cmsg), sizeof (fd_array));
}
cmsg = CMSG_NXTHDR (&mh, cmsg);
}
@@ -573,7 +573,7 @@ memif_connect_master (vlib_main_t * vm, memif_if_t * mif)
cmsg->cmsg_level = SOL_SOCKET;
cmsg->cmsg_type = SCM_RIGHTS;
fd_array[0] = mfd;
- clib_memcpy (CMSG_DATA (cmsg), fd_array, sizeof (fd_array));
+ memcpy (CMSG_DATA (cmsg), fd_array, sizeof (fd_array));
mif->flags |= MEMIF_IF_FLAG_CONNECTING;
rv = sendmsg (mif->connection.fd, &mh, 0);