summaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/interest_hitcs_node.c
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-05-29 19:09:25 +0200
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-05-29 19:09:25 +0200
commit088daca13076803f9e6e3a91f7b76bfc2aff6a33 (patch)
tree1fc68e2b9dbef57f1de86dba6f07457d77587d0f /hicn-plugin/src/interest_hitcs_node.c
parente7149a6893bb4df7380ce046cc98044b069b0f2d (diff)
[HICN-209] Fixed the copy of packet with size less than 2 cache lines.
Change-Id: I05969411c2807c5e0fb434e08b216315cee8e9c1 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'hicn-plugin/src/interest_hitcs_node.c')
-rw-r--r--hicn-plugin/src/interest_hitcs_node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hicn-plugin/src/interest_hitcs_node.c b/hicn-plugin/src/interest_hitcs_node.c
index af9db2863..14f512897 100644
--- a/hicn-plugin/src/interest_hitcs_node.c
+++ b/hicn-plugin/src/interest_hitcs_node.c
@@ -50,7 +50,7 @@ clone_from_cs (vlib_main_t * vm, u32 * bi0_cs, vlib_buffer_t * dest, u8 isv6)
{
clib_memcpy_fast (vlib_buffer_get_current (dest),
vlib_buffer_get_current (cs_buf),
- dest->current_length);
+ cs_buf->current_length);
clib_memcpy_fast (dest->opaque2, cs_buf->opaque2,
sizeof (cs_buf->opaque2));