diff options
author | Filip Varga <fivarga@cisco.com> | 2020-12-10 15:55:25 +0100 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2021-01-05 14:09:39 +0000 |
commit | a210798c407035f09c10c018ebdaf12312161730 (patch) | |
tree | c03e68701aaca9c3a4207107bdacb183da8a4a5a /src/plugins/nat/in2out_ed.c | |
parent | 641c6be821c3136cb140b6726e16246f2f1cbd4c (diff) |
nat: refactor and split fo EI/ED features
This patch is aimed at moving EI features out of NAT44
plugin & split of EI/ED functions.
Type: refactor
Change-Id: I63cf70a264ed2512708fe92665d64f04690783d0
Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/in2out_ed.c')
-rw-r--r-- | src/plugins/nat/in2out_ed.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/plugins/nat/in2out_ed.c b/src/plugins/nat/in2out_ed.c index 776efdf1395..ed9ad04bdb2 100644 --- a/src/plugins/nat/in2out_ed.c +++ b/src/plugins/nat/in2out_ed.c @@ -29,7 +29,6 @@ #include <nat/nat_inlines.h> #include <nat/nat44/inlines.h> #include <nat/lib/nat_syslog.h> -#include <nat/nat_ha.h> #include <nat/nat44/ed_inlines.h> #include <nat/lib/nat_inlines.h> @@ -133,10 +132,6 @@ nat44_i2o_ed_is_idle_session_cb (clib_bihash_kv_16_8_t * kv, void *arg) &s->ext_host_addr, s->ext_host_port, s->nat_proto, is_twice_nat_session (s)); - nat_ha_sdel (&s->out2in.addr, s->out2in.port, &s->ext_host_addr, - s->ext_host_port, s->nat_proto, s->out2in.fib_index, - ctx->thread_index); - if (is_twice_nat_session (s)) { for (i = 0; i < vec_len (sm->twice_nat_addresses); i++) @@ -482,11 +477,6 @@ slow_path_ed (snat_main_t * sm, &s->ext_host_addr, s->ext_host_port, s->nat_proto, 0); - nat_ha_sadd (&s->in2out.addr, s->in2out.port, &s->out2in.addr, - s->out2in.port, &s->ext_host_addr, s->ext_host_port, - &s->ext_host_nat_addr, s->ext_host_nat_port, - s->nat_proto, s->in2out.fib_index, s->flags, thread_index, 0); - per_vrf_sessions_register_session (s, thread_index); return next; |