ip: fix assert in ip4_ttl_inc 39/35439/2
authorAloys Augustin <aloaugus@cisco.com>
Thu, 24 Feb 2022 15:44:23 +0000 (15:44 +0000)
committerBeno�t Ganne <bganne@cisco.com>
Fri, 18 Mar 2022 08:25:11 +0000 (08:25 +0000)
commit0b77e312827f68251f10ac1f674e3e564059fc52
tree78aa06d74d41d2f585e09b8b9fb2fb404fe81a71
parent19658c990b9514b4e42e9a6aeb93116a6213c148
ip: fix assert in ip4_ttl_inc

There is no need to verify the checksum for packets that have the IP
checksum offload flag set. This uses the same logic as
ip4_ttl_and_checksum_check.

Type: fix

Signed-off-by: Aloys Augustin <aloaugus@cisco.com>
Change-Id: I177b07212a992362a4c965c074dcecf1e504c593
src/vnet/ip/ip4_forward.c