app/pdump: fix type casting of ring size
authorReshma Pattan <reshma.pattan@intel.com>
Fri, 24 Jun 2016 16:36:23 +0000 (17:36 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jun 2016 14:50:24 +0000 (16:50 +0200)
commit9115326d99f0f03c163b04d6379bd3b8969db6c0
treeb7f28265acce7334d3e9059dae420bb5e90c89f4
parent819d48b9d0f6ba486d3972ff709074b6a037e3a6
app/pdump: fix type casting of ring size

ring_size value is wrongly type casted to uint16_t.
It should be type casted to uint32_t, as maximum
ring size is 28bit long. Wrong type cast
wrapping around the ring size values bigger than 65535.

Fixes: caa7028276b8 ("app/pdump: add tool for packet capturing")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
app/pdump/main.c