Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
15e598c
)
ip4_forward: set pkt error in case potential memory corrupt
39/10439/3
author
Chun Li
<chunl2@cisco.com>
Wed, 7 Feb 2018 01:58:28 +0000
(09:58 +0800)
committer
Damjan Marion
<dmarion.lists@gmail.com>
Fri, 9 Feb 2018 13:14:46 +0000
(13:14 +0000)
Change-Id: Ib9eb65d2ba166f5883a8ce8d37298c696113f2be
Signed-off-by: Chun Li <chunl2@cisco.com>
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
ff58296
..
ae45106
100644
(file)
--- a/
src/vnet/ip/ip4_forward.c
+++ b/
src/vnet/ip/ip4_forward.c
@@
-2130,6
+2130,8
@@
ip4_rewrite_inline (vlib_main_t * vm,
IP4_ERROR_SAME_INTERFACE : error1);
}
+ p0->error = error_node->errors[error0];
+ p1->error = error_node->errors[error1];
/* Don't adjust the buffer for ttl issue; icmp-error node wants
* to see the IP headerr */
if (PREDICT_TRUE (error0 == IP4_ERROR_NONE))