NAT: fixed bug in snat_get_worker_out2in_cb (VPP-832) 34/8334/3
authorMatus Fabian <matfabia@cisco.com>
Thu, 7 Sep 2017 10:50:49 +0000 (03:50 -0700)
committerDamjan Marion <dmarion.lists@gmail.com>
Thu, 7 Sep 2017 13:38:36 +0000 (13:38 +0000)
Change-Id: Id9c977634a1259865e3403ba0d90aecaca85207d
Signed-off-by: Matus Fabian <matfabia@cisco.com>
src/plugins/nat/nat.c

index fabd0bc..aa7ef10 100644 (file)
@@ -2081,6 +2081,8 @@ snat_get_worker_out2in_cb (ip4_header_t * ip0, u32 rx_fib_index0)
         }
 
       /* Add to translated packets worker lookup */
+      key0.port = udp0->dst_port;
+      kv0.key = key0.as_u64;
       kv0.value = next_worker_index;
       clib_bihash_add_del_8_8 (&sm->worker_by_out, &kv0, 1);
     }