ip: fix cancel termination after receive malformed ip6 packet 34/28234/2
authorjohny <[email protected]>
Fri, 11 Oct 2019 16:28:51 +0000 (18:28 +0200)
committerAndrew Yourtchenko <[email protected]>
Wed, 12 Aug 2020 07:43:14 +0000 (07:43 +0000)
commit25b58c6d21db0d0ffaebff4effb4aa4a9e41745e
treee78b26b4761e647cbcac772f3c2c39910e35747c
parentcba508a212ffdd2bc60fb887c1588f872804db3f
ip: fix cancel termination after receive malformed ip6 packet

This fix is for cancel termination of vpp after receive malformed
packet type of ip6.To avoid termination of vpp are checked if are
missing data in packet. This occours, when payload length in ip6
header packet is more than real count of data in packet. When
this error occours, packet is ignore.

Type: fix
Ticket: VPP-1693, VPP-1694

Change-Id: I9d9ecea7b75c8702cb31aa8051c8d4d7ce19659d
Signed-off-by: johny <[email protected]>
(cherry picked from commit 17478e4eb81d384f171ca27c9110a051cd434f16)
src/vnet/ip/ip.h
src/vnet/ip/ip6_forward.c