app/testpmd: fix L2TPv2 message type
authorJie Wang <jie1x.wang@intel.com>
Wed, 27 Oct 2021 02:01:52 +0000 (10:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 28 Oct 2021 18:04:03 +0000 (20:04 +0200)
commit684366134c27242e93d41e7c025b24f709671996
tree405c6d81012806345e4d92372ee47a8f4d00ea39
parentaf5c990935d7cd726ea5f202a36eca04bf0683be
app/testpmd: fix L2TPv2 message type

In "msg_type |= 0xc800", wider "51200" has high-order bits (0xc800)
that don't affect the narrower left-hand side.

This patch fixes coverity issue by changing the definition type of
"msg_type" from uint8_t to uint16_t.

Coverity issue: 373651
Fixes: 748530f0354e ("app/testpmd: support L2TPv2 and PPP protocol pattern")

Signed-off-by: Jie Wang <jie1x.wang@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline_flow.c