From: Matus Fabian Date: Thu, 7 Sep 2017 10:50:49 +0000 (-0700) Subject: NAT: fixed bug in snat_get_worker_out2in_cb (VPP-832) X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=7d6412e66d7bef15e964935845ed30c03d8b12b7;p=odp4vpp.git NAT: fixed bug in snat_get_worker_out2in_cb (VPP-832) Change-Id: Id9c977634a1259865e3403ba0d90aecaca85207d Signed-off-by: Matus Fabian --- diff --git a/src/plugins/nat/nat.c b/src/plugins/nat/nat.c index fabd0bc2..aa7ef10a 100644 --- a/src/plugins/nat/nat.c +++ b/src/plugins/nat/nat.c @@ -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); }