IPv6 payload length should not include the size of the IPv6 header.
Type: fix
Change-Id: Iedcd17d0af8d72d9b5f8f9b605da7c99e151bc9d
Signed-off-by: Benoît Ganne <bganne@cisco.com>
/* copy only ip6 and udp header; wireguard header not needed */
clib_memcpy (hdr6, rewrite, sizeof (ip6_udp_header_t));
- hdr6->udp.length =
+ hdr6->ip6.payload_length = hdr6->udp.length =
clib_host_to_net_u16 (b0->current_length - sizeof (ip6_header_t));
-
- hdr6->ip6.payload_length = clib_host_to_net_u16 (b0->current_length);
}
}