aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorMohammed Hawari <mohammed@hawari.fr>2020-12-04 17:00:16 +0100
committerDamjan Marion <dmarion@me.com>2020-12-04 22:47:08 +0000
commit2b29c9494e836a4f223c847c92eada9dc31e00a7 (patch)
treeb8e85560087fc7a3485b4bb7e84a39779c6607d6 /src/plugins
parent7a105fdad6d44519fd31beb15fdc1c79fdd82e6f (diff)
avf: fix coverity issue
Change-Id: I1b589c924326a98c4cabe5496ce72b20673b5153 Signed-off-by: Mohammed Hawari <mohammed@hawari.fr> Type: fix
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/avf/output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/avf/output.c b/src/plugins/avf/output.c
index 90cc56fc7d8..cbc85b846fe 100644
--- a/src/plugins/avf/output.c
+++ b/src/plugins/avf/output.c
@@ -113,7 +113,8 @@ avf_tx_prepare_cksum (vlib_buffer_t * b, u8 is_tso)
else
{
struct avf_ip6_psh psh = { 0 };
- clib_memcpy_fast (&psh.src, &ip6->src_address, 32);
+ clib_memcpy_fast (&psh.src, &ip6->src_address, 16);
+ clib_memcpy_fast (&psh.dst, &ip6->dst_address, 16);
psh.proto = clib_host_to_net_u32 ((u32) ip6->protocol);
psh.l4len = is_tso ? 0 : ip6->payload_length;
sum = ~ip_csum (&psh, sizeof (psh));