aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2017-09-07 03:50:49 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2017-09-07 13:38:36 +0000
commit7d6412e66d7bef15e964935845ed30c03d8b12b7 (patch)
treee1603ea386b52d99ce239c0d016dc82665ef32c1
parent20754e6667146731f598ad7ef0e9a5e59a6edd6b (diff)
NAT: fixed bug in snat_get_worker_out2in_cb (VPP-832)
Change-Id: Id9c977634a1259865e3403ba0d90aecaca85207d Signed-off-by: Matus Fabian <matfabia@cisco.com>
-rw-r--r--src/plugins/nat/nat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/nat/nat.c b/src/plugins/nat/nat.c
index fabd0bc26ae..aa7ef10ad0e 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);
}