fix segfault on input packets with invalid checksum 92/1992/1
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Mon, 18 Jul 2016 23:02:30 +0000 (00:02 +0100)
committerKonstantin Ananyev <konstantin.ananyev@intel.com>
Mon, 18 Jul 2016 23:43:03 +0000 (00:43 +0100)
commit9c7aa95efd1120b3bbe3a214afd9ffb03afa7a6d
treebefef0af0ee6bb0202b9890df774d2ba8ce82192
parent3688f046e8b62bce6c4c51b43f48bd5c67a2aaf6
fix segfault on input packets with invalid checksum

libtle_udp: prevent receive code-path to reference packets
that were already freed.

udpfwd: if input device doesn't support IPV4 checksum offload,
we need to recalculate IPV4 header checksum of the
reassembled packet.

fixes 3395610ea65d ("Initial commit of tldk code").
fixes 8efc4c11464f ("Change libtle_udp to use dring").

Change-Id: I77523b1ba63b0f8d25d5f0b3bc777a338ad8acf5
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
examples/udpfwd/pkt.c
lib/libtle_udp/udp_rxtx.c