diff options
author | shubing guo <guo.shubing@zte.com.cn> | 2018-08-13 17:16:46 +0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-02 11:37:03 +0000 |
commit | 86f6d3e291197e136339a21f5d505fb25e996796 (patch) | |
tree | 151c6c5dfaee62dc4e1f10180280871f6648e788 /src/plugins/nat/dslite_in2out.c | |
parent | 6b4b20318b4c96a79a79e5057c4ba77813050d7c (diff) |
VPP-1387:foreach outside address vector to find correct index when free outside address and port
Change-Id: Ie5452350a8ebe2c1b62085fcab50dbc0138d3ae2
Signed-off-by: shubing guo <guo.shubing@zte.com.cn>
(cherry picked from commit 762a4938900abeedd42676ab2582fcceabdc07fa)
Diffstat (limited to 'src/plugins/nat/dslite_in2out.c')
-rw-r--r-- | src/plugins/nat/dslite_in2out.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/nat/dslite_in2out.c b/src/plugins/nat/dslite_in2out.c index 991d6eda775..bf51ca23051 100644 --- a/src/plugins/nat/dslite_in2out.c +++ b/src/plugins/nat/dslite_in2out.c @@ -103,8 +103,7 @@ slow_path (dslite_main_t * dm, dslite_session_key_t * in2out_key, clib_bihash_add_del_8_8 (&dm->per_thread_data[thread_index].out2in, &out2in_kv, 0); snat_free_outside_address_and_port (dm->addr_pool, thread_index, - &s->out2in, - s->outside_address_index); + &s->out2in); s->outside_address_index = ~0; if (snat_alloc_outside_address_and_port |