nat: error in input parameter of init_nat_k 83/29383/2
authorDengfeng Liu <liudf0716@gmail.com>
Mon, 12 Oct 2020 06:45:28 +0000 (02:45 -0400)
committerDamjan Marion <dmarion@me.com>
Fri, 16 Oct 2020 10:44:16 +0000 (10:44 +0000)
Type: fix
Signed-off-by: Dengfeng Liu <liudf0716@gmail.com>
Change-Id: I3e7ee771d0cf5b7b1b9fbbc833776d523dfa9f09

src/plugins/nat/nat.c

index 17d1b8f..b519550 100644 (file)
@@ -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))
        {