nat: revert respect udp checksum

This reverts commit 00be6b18862273f832bc524601a34448a61b0e3e.
Type: fix

Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Ibef710319222e311bbdfd3221acc4df82139d12d
This commit is contained in:
Ole Troan
2019-11-07 22:15:47 +01:00
parent 00be6b1886
commit 3bacbc975f

View File

@ -895,6 +895,10 @@ VLIB_NODE_FN (snat_out2in_node) (vlib_main_t * vm,
if (PREDICT_TRUE (proto0 == SNAT_PROTOCOL_TCP)) 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 = tcp0->checksum;
sum0 = ip_csum_update (sum0, old_addr0, new_addr0, sum0 = ip_csum_update (sum0, old_addr0, new_addr0,
ip4_header_t, ip4_header_t,