examples/ipsec-secgw: fix IPv6 payload length
authorTomasz Duszynski <tdu@semihalf.com>
Fri, 13 Oct 2017 08:04:36 +0000 (10:04 +0200)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 25 Oct 2017 16:10:42 +0000 (18:10 +0200)
commitb43a81319b2411bbdb96bd349cd3cdfd66714777
tree6a8c4ece33529429fcec73b76471169ab4be298f
parent812f48370f93198f082f98a69f0882b6ae1bde61
examples/ipsec-secgw: fix IPv6 payload length

IPv6 payload length header field should contain only the number of bytes
following the IPv6 header and not the entire packet size.

Fixes: f159e70b0922 ("examples/ipsec-secgw: support transport mode")
Fixes: 906257e965b7 ("examples/ipsec-secgw: support IPv6")
Cc: stable@dpdk.org
Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
examples/ipsec-secgw/esp.c
examples/ipsec-secgw/ipip.h