ip: fix ip6/udp checksum for pkts using buffer chaining 61/21061/1
authorJohn Lo <loj@cisco.com>
Sat, 3 Aug 2019 18:36:39 +0000 (14:36 -0400)
committerJohn Lo <loj@cisco.com>
Mon, 5 Aug 2019 13:08:20 +0000 (13:08 +0000)
commit1e567ddb35cb2b1c3b0200c9e8b6c8d2ec2533ae
tree6817367e34c1f8e7013e851a9d266b66333079ad
parent5672495dc096f165714c5ce3a321059c35b545f1
ip: fix ip6/udp checksum for pkts using buffer chaining

Fix ip6_tcp_udp_icmp_compute_checksum to work properly for packets
with multiple buffers.
Fix ip4_tcp_udp_compute_checksum to exit upon detecting error.

Type: fix

Signed-off-by: John Lo <loj@cisco.com>
Change-Id: I673547f4479d72cd60757383343fc562cff10265
(cherry picked from commit 3bc6bc21fb79a9da4ec674f5e6a3303e7e2be625)
src/vnet/ip/ip4_forward.c
src/vnet/ip/ip6_forward.c