summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2020-11-04 17:40:53 +0000
committerDamjan Marion <dmarion@me.com>2020-11-05 12:34:08 +0000
commit9c4a582dca7c819ebf3eccd70482d7a03853b51e (patch)
treeb362daf2543f9150c1618558558a91066871a0fb /src/plugins/nat
parentce252ca83f8c1621dae2112f59750c0e0f7f784a (diff)
nat: remove unused code
Type: improvement Signed-off-by: Klement Sekera <ksekera@cisco.com> Change-Id: Ibbdfb0a2d1ff64044a0f6b2443b526bd1cf12f93
Diffstat (limited to 'src/plugins/nat')
-rw-r--r--src/plugins/nat/nat44/inlines.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/plugins/nat/nat44/inlines.h b/src/plugins/nat/nat44/inlines.h
index 459badac8e1..ab5dc1fd9bc 100644
--- a/src/plugins/nat/nat44/inlines.h
+++ b/src/plugins/nat/nat44/inlines.h
@@ -42,28 +42,6 @@ nat44_ed_maximum_sessions_exceeded (snat_main_t * sm,
return translations >= sm->max_translations_per_fib[fib_index];
}
-static_always_inline snat_session_t *
-nat44_session_reuse_old (snat_main_t * sm, snat_user_t * u,
- snat_session_t * s, u32 thread_index, f64 now)
-{
- nat44_free_session_data (sm, s, thread_index, 0);
- if (snat_is_session_static (s))
- u->nstaticsessions--;
- else
- u->nsessions--;
- s->flags = 0;
- s->total_bytes = 0;
- s->total_pkts = 0;
- s->state = 0;
- s->ext_host_addr.as_u32 = 0;
- s->ext_host_port = 0;
- s->ext_host_nat_addr.as_u32 = 0;
- s->ext_host_nat_port = 0;
- s->tcp_closed_timestamp = 0;
- s->ha_last_refreshed = now;
- return s;
-}
-
static_always_inline void
nat44_user_del_sessions (snat_user_t * u, u32 thread_index)
{