diff options
author | Filip Varga <fivarga@cisco.com> | 2019-10-21 18:18:00 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2019-11-07 20:09:00 +0000 |
commit | 00be6b18862273f832bc524601a34448a61b0e3e (patch) | |
tree | ab2f7d9b98f6b10d0091814aa70daffc5347cdf3 | |
parent | f073acdcaeeb7ad4b7916e839db8a7fbfefa87b2 (diff) |
nat: respect udp checksum
Type: fix
Change-Id: I732be02d2e2b854eb589c3fa10f980ef2dbe8dfc
Signed-off-by: Filip Varga <fivarga@cisco.com>
(cherry picked from commit 16572355c9069e2e8e4836dc6bd6a65feed2d390)
-rwxr-xr-x | src/plugins/nat/out2in.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/nat/out2in.c b/src/plugins/nat/out2in.c index 8c6cb482703..00c5176326d 100755 --- a/src/plugins/nat/out2in.c +++ b/src/plugins/nat/out2in.c @@ -895,10 +895,6 @@ 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, |