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:
4298ab4
)
ip4_forward: set pkt error in case potential memory corrupt
25/11025/2
author
Chun Li
<
[email protected]
>
Wed, 7 Feb 2018 01:58:28 +0000
(09:58 +0800)
committer
Damjan Marion
<
[email protected]
>
Thu, 8 Mar 2018 07:53:41 +0000
(07:53 +0000)
Change-Id: Ib9eb65d2ba166f5883a8ce8d37298c696113f2be
Signed-off-by: Chun Li <
[email protected]
>
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
9c57757
..
ebbf3e5
100755
(executable)
--- a/
src/vnet/ip/ip4_forward.c
+++ b/
src/vnet/ip/ip4_forward.c
@@
-2487,6
+2487,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))