summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDengfeng Liu <liudf0716@gmail.com>2020-10-12 02:45:28 -0400
committerDamjan Marion <dmarion@me.com>2020-10-16 10:44:16 +0000
commit8c292338b76d3242b4556cd090b8d07c560b2be8 (patch)
tree1439986d49e755f6bab5af6aafbc08c987138e7d
parent64146740614b31ee08dce533ea0c011cd2bd438f (diff)
nat: error in input parameter of init_nat_k
Type: fix Signed-off-by: Dengfeng Liu <liudf0716@gmail.com> Change-Id: I3e7ee771d0cf5b7b1b9fbbc833776d523dfa9f09
-rw-r--r--src/plugins/nat/nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/nat/nat.c b/src/plugins/nat/nat.c
index 17d1b8ff672..b5195502719 100644
--- a/src/plugins/nat/nat.c
+++ b/src/plugins/nat/nat.c
@@ -3576,7 +3576,7 @@ nat44_ed_get_worker_out2in_cb (vlib_buffer_t * b, ip4_header_t * ip,
/* try static mappings with port */
if (PREDICT_FALSE (pool_elts (sm->static_mappings)))
{
- init_nat_k (&kv, ip->dst_address, proto, 0, port);
+ init_nat_k (&kv, ip->dst_address, port, 0, proto);
if (!clib_bihash_search_8_8
(&sm->static_mapping_by_external, &kv, &value))
{