pg: incrementing len should be truncated by 76/15576/2
authorKingwel Xie <kingwel.xie@ericsson.com>
Sat, 27 Oct 2018 03:55:47 +0000 (23:55 -0400)
committerDamjan Marion <dmarion@me.com>
Sat, 27 Oct 2018 09:14:30 +0000 (09:14 +0000)
commit49cd3bad66cba83f0364d94ed34de2457694f545
tree8b11fc08ffb8ad2d411df8d6578bfc3bd3a0e17f
parent4af47092eec97ce88f66174570cfc6a7baad4c6c
pg: incrementing len should be truncated by
stream->max_packet_bytes

This length is the payload length, and will impact the ip length
when ip length is not specified. iplen = header_len + payload_len
SO, better to make it comply with max_packet_bytes

Change-Id: I8b0f7485e29fcaccae656f2d03b3b5e614300fb8
Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
src/vnet/pg/edit.c