pg: icmp4 & tcp4 ip length issue 74/15574/2
authorKingwel Xie <kingwel.xie@ericsson.com>
Sat, 27 Oct 2018 03:26:06 +0000 (23:26 -0400)
committerDamjan Marion <dmarion@me.com>
Sat, 27 Oct 2018 09:15:03 +0000 (09:15 +0000)
commita91866fc1fd673a5edab6e3cb61bd41b8ea3def7
treee5dee75bc3a4f064e6e45c187de630873bea9b5f
parent49cd3bad66cba83f0364d94ed34de2457694f545
pg: icmp4 & tcp4 ip length issue

length in ip4 header could be 0, when the length edit is fixed
this happens if length is not specified or size is specified as, f.g., 100-100
As a result, tcp and icmp would get a negative value for checksum calculation

Change-Id: I55fa1f5e95717ea4149cb3b8c9b73caf88ae7f98
Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
src/vnet/ip/icmp4.c
src/vnet/tcp/tcp_pg.c