Code Review
/
odp4vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
84db40e
)
ip: avoid arp assert if out of buffers (VPP-1030)
author
Florin Coras
<
[email protected]
>
Sat, 14 Oct 2017 18:02:37 +0000
(11:02 -0700)
committer
Dave Wallace
<
[email protected]
>
Mon, 16 Oct 2017 05:01:04 +0000
(
05:01
+0000)
Change-Id: Ia31b978c6c1619c3e0075a84fcbbb6ccbf1c0076
Signed-off-by: Florin Coras <
[email protected]
>
(cherry picked from commit
d172a62365523427aebd34444736632c9a68a463
)
src/vnet/ip/ip4_forward.c
patch
|
blob
|
history
diff --git
a/src/vnet/ip/ip4_forward.c
b/src/vnet/ip/ip4_forward.c
index
58cfd18
..
6b3453b
100755
(executable)
--- 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));