NAT44: fix nat_not_translate_output_feature in dual loop (VPP-1194) 56/11256/2
authorMatus Fabian <[email protected]>
Fri, 9 Mar 2018 13:07:35 +0000 (05:07 -0800)
committerMatus Fabian <[email protected]>
Fri, 23 Mar 2018 11:32:58 +0000 (11:32 +0000)
Change-Id: Icb858414145db0e5fef495e155903b3b935e50ba
Signed-off-by: Matus Fabian <[email protected]>
(cherry picked from commit 3c2a416c42a0481698735a0b1e355bfb7a702882)

src/plugins/nat/in2out.c

index fae930b..f29e157 100755 (executable)
@@ -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
                     {