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:
1bd6cbb
)
ip: ensure ttl doesn't decrease to 0 when punting
69/31969/7
author
Aloys Augustin
<aloaugus@cisco.com>
Tue, 13 Apr 2021 19:14:55 +0000
(21:14 +0200)
committer
Matthew Smith
<mgsmith@netgate.com>
Tue, 11 May 2021 21:21:27 +0000
(21:21 +0000)
Change-Id: I248ef12fd34ea2a1c383fbcc530a8ffeb31ba92b
Type: fix
Signed-off-by: Aloys Augustin <aloaugus@cisco.com>
src/vnet/ip/ip_punt_drop.h
patch
|
blob
|
history
diff --git
a/src/vnet/ip/ip_punt_drop.h
b/src/vnet/ip/ip_punt_drop.h
index
16d46ba
..
a595e44
100644
(file)
--- a/
src/vnet/ip/ip_punt_drop.h
+++ b/
src/vnet/ip/ip_punt_drop.h
@@
-349,6
+349,8
@@
ip_punt_redirect (vlib_main_t * vm,
if (PREDICT_TRUE (INDEX_INVALID != rrxi0))
{
+ /* prevent ttl decrement on forward */
+ b0->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED;
rrx0 = ip_punt_redirect_get (rrxi0);
vnet_buffer (b0)->ip.adj_index[VLIB_TX] = rrx0->dpo.dpoi_index;
next0 = rrx0->dpo.dpoi_next_node;