From cddbcdb6661e8f6a8852f32543828a18397dce64 Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Fri, 9 Mar 2018 05:07:35 -0800 Subject: NAT44: fix nat_not_translate_output_feature in dual loop (VPP-1194) Change-Id: Icb858414145db0e5fef495e155903b3b935e50ba Signed-off-by: Matus Fabian (cherry picked from commit 3c2a416c42a0481698735a0b1e355bfb7a702882) --- src/plugins/nat/in2out.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/nat/in2out.c b/src/plugins/nat/in2out.c index fae930b607f..f29e1575e16 100755 --- a/src/plugins/nat/in2out.c +++ b/src/plugins/nat/in2out.c @@ -1089,7 +1089,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]; @@ -1734,7 +1734,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 { -- cgit 1.2.3-korg