diff options
author | Matus Fabian <matfabia@cisco.com> | 2018-09-20 23:18:41 -0700 |
---|---|---|
committer | Matus Fabian <matfabia@cisco.com> | 2018-09-21 04:07:37 -0700 |
commit | ab395ec884d0ec9279893b1695379e97acd1f24d (patch) | |
tree | f04db4d5da24c6598fe3b2aae29d937fa267de9c /src/plugins/nat/nat64.c | |
parent | 22030434ac9a3a7296617b996268e79dbf8bbffa (diff) |
NAT: Refactoring / Housekeeping (VPP-1415)
Change-Id: Ia3ce24cc94f9b2fb331ad62a4181ddcd41bc78ca
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat64.c')
-rw-r--r-- | src/plugins/nat/nat64.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/nat/nat64.c b/src/plugins/nat/nat64.c index 04055af99bf..1954893ff8c 100644 --- a/src/plugins/nat/nat64.c +++ b/src/plugins/nat/nat64.c @@ -506,7 +506,6 @@ nat64_alloc_out_addr_and_port (u32 fib_index, snat_protocol_t proto, nat64_main_t *nm = &nat64_main; snat_main_t *sm = nm->sm; snat_session_key_t k; - u32 ai; u32 worker_index = 0; int rv; @@ -516,7 +515,7 @@ nat64_alloc_out_addr_and_port (u32 fib_index, snat_protocol_t proto, worker_index = thread_index - sm->first_worker_index; rv = - sm->alloc_addr_and_port (nm->addr_pool, fib_index, thread_index, &k, &ai, + sm->alloc_addr_and_port (nm->addr_pool, fib_index, thread_index, &k, sm->port_per_thread, worker_index); if (!rv) |