VPP-621: ping: ICMP echo data size must be bounded by VLIB_BUFFER_DATA_SIZE minus... 21/4921/4
authorAndrew Yourtchenko <ayourtch@gmail.com>
Sat, 28 Jan 2017 15:31:19 +0000 (15:31 +0000)
committerNeale Ranns <nranns@cisco.com>
Mon, 30 Jan 2017 19:52:53 +0000 (19:52 +0000)
commit61459c9be0f620f738cf049b1b33e1a2d13dc9a6
tree21932acc828c09e8b9b00ed1d8587d2b94a45224
parentd03798c4eb860c30945c4ce881d2889a43ed4a93
VPP-621: ping: ICMP echo data size must be bounded by VLIB_BUFFER_DATA_SIZE minus headers.

Before the commit 878c6098 the VLIB_BUFFER_DATA_SIZE was different depending
on whether building "vpp" or "vpp_lite", resulting in an overrun in vpp_lite build.
Avoid the hardcoded value and make the upper bound for ICMP echo data size
dependent on the buffer size.

Change-Id: Id6c4d7fc73766a95af2610eb237881b5fe9ce9aa
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/vnet/ip/ping.c
src/vnet/ip/ping.h