From a416ea9f02563396b984dfcb6a24aa57279dc95b Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Sat, 14 Oct 2017 11:02:37 -0700 Subject: ip: avoid arp assert if out of buffers (VPP-1030) Change-Id: Ia31b978c6c1619c3e0075a84fcbbb6ccbf1c0076 Signed-off-by: Florin Coras (cherry picked from commit d172a62365523427aebd34444736632c9a68a463) --- src/vnet/ip/ip4_forward.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vnet/ip/ip4_forward.c b/src/vnet/ip/ip4_forward.c index 58cfd181..6b3453b5 100755 --- a/src/vnet/ip/ip4_forward.c +++ b/src/vnet/ip/ip4_forward.c @@ -2093,6 +2093,10 @@ ip4_arp_inline (vlib_main_t * vm, &im->ip4_arp_request_packet_template, &bi0); + /* Seems we're out of buffers */ + if (PREDICT_FALSE (!h0)) + continue; + /* Add rewrite/encap string for ARP packet. */ vnet_rewrite_one_header (adj0[0], h0, sizeof (ethernet_header_t)); -- cgit 1.2.3-korg