diff options
author | Ole Troan <ot@cisco.com> | 2019-11-07 22:15:47 +0100 |
---|---|---|
committer | Ole Troan <ot@cisco.com> | 2019-11-07 22:16:39 +0100 |
commit | 3bacbc975f1638ebdf66de2603eb0fd2fb1e61b7 (patch) | |
tree | 4bc32ac3cc3812b4afc6bdfa917178d3a2bb9120 /src/plugins | |
parent | 00be6b18862273f832bc524601a34448a61b0e3e (diff) |
nat: revert respect udp checksum
This reverts commit 00be6b18862273f832bc524601a34448a61b0e3e.
Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Ibef710319222e311bbdfd3221acc4df82139d12d
Diffstat (limited to 'src/plugins')
-rwxr-xr-x | src/plugins/nat/out2in.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/nat/out2in.c b/src/plugins/nat/out2in.c index 00c5176326d..8c6cb482703 100755 --- 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, |