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:
00be6b1
)
nat: revert respect udp checksum
25/23325/1
author
Ole Troan
<ot@cisco.com>
Thu, 7 Nov 2019 21:15:47 +0000
(22:15 +0100)
committer
Ole Troan
<ot@cisco.com>
Thu, 7 Nov 2019 21:16:39 +0000
(22:16 +0100)
This reverts commit
00be6b18862273f832bc524601a34448a61b0e3e
.
Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Ibef710319222e311bbdfd3221acc4df82139d12d
src/plugins/nat/out2in.c
patch
|
blob
|
history
diff --git
a/src/plugins/nat/out2in.c
b/src/plugins/nat/out2in.c
index
00c5176
..
8c6cb48
100755
(executable)
--- a/
src/plugins/nat/out2in.c
+++ b/
src/plugins/nat/out2in.c
@@
-895,6
+895,10
@@
VLIB_NODE_FN (snat_out2in_node) (vlib_main_t * vm,
if (PREDICT_TRUE (proto0 == SNAT_PROTOCOL_TCP))
{
+ old_port0 = tcp0->dst_port;
+ tcp0->dst_port = s0->in2out.port;
+ new_port0 = tcp0->dst_port;
+
sum0 = tcp0->checksum;
sum0 = ip_csum_update (sum0, old_addr0, new_addr0,
ip4_header_t,