diff options
author | Milan Lenco <milan.lenco@pantheon.tech> | 2017-04-19 10:34:53 +0200 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2017-04-20 09:03:56 +0000 |
commit | f1ff5ff1049fd2750823273a3a92779e5fd6e1a5 (patch) | |
tree | 0278405f8cd758dec9dd68cffd1230e7bf825a5b /src/plugins/memif/memif.c | |
parent | 24beb840400adcdd0fbcd85727ab1a2fa7040dca (diff) |
Temporary workaround for the bug VPP-698.
Change-Id: I220b0b95449f24cc547206e38ab8e10019115ec0
Signed-off-by: Milan Lenco <milan.lenco@pantheon.tech>
Diffstat (limited to 'src/plugins/memif/memif.c')
-rw-r--r-- | src/plugins/memif/memif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/memif/memif.c b/src/plugins/memif/memif.c index dc7ddd8a3c5..98d31eb0453 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); |