aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2018-03-09 05:07:35 -0800
committerMatus Fabian <matfabia@cisco.com>2018-03-12 03:42:15 -0700
commit3c2a416c42a0481698735a0b1e355bfb7a702882 (patch)
tree17b19a55dc0b9e187a749b311a75d5b3c6d8be45
parent2aad876be8d5b1754976dc29a401a4bbf4a2c76d (diff)
NAT44: fix nat_not_translate_output_feature in dual loop (VPP-1194)
Change-Id: Icb858414145db0e5fef495e155903b3b935e50ba Signed-off-by: Matus Fabian <matfabia@cisco.com>
-rwxr-xr-xsrc/plugins/nat/in2out.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/nat/in2out.c b/src/plugins/nat/in2out.c
index 5d6969f5789..1b7a24bdecf 100755
--- a/src/plugins/nat/in2out.c
+++ b/src/plugins/nat/in2out.c
@@ -1135,7 +1135,7 @@ snat_in2out_unknown_proto (snat_main_t *sm,
key.fib_index = rx_fib_index;
key.proto = ip->protocol;
key.l_port = 0;
- key.l_port = 0;
+ key.r_port = 0;
s_kv.key[0] = key.as_u64[0];
s_kv.key[1] = key.as_u64[1];
@@ -1794,7 +1794,7 @@ snat_in2out_node_fn_inline (vlib_main_t * vm,
{
if (PREDICT_FALSE(nat_not_translate_output_feature(sm,
ip1, proto1, udp1->src_port, thread_index)))
- goto trace00;
+ goto trace01;
}
else
{