summaryrefslogtreecommitdiffstats
path: root/src/plugins/nat/nat.h
diff options
context:
space:
mode:
authorFilip Varga <fivarga@cisco.com>2020-08-19 14:57:10 +0200
committerOle Trøan <otroan@employees.org>2020-08-20 07:17:49 +0000
commit9f57c72e27e21ce8dc8ebfee059711e3102d0c6b (patch)
tree636b465051d495326cbddf4ef1383e7c9fdeeb68 /src/plugins/nat/nat.h
parentdd7d24bdfb1445b888110f11c08d02a4d2a150ee (diff)
nat: fixed cli nat summary and nat limit
Type: fix Change-Id: I78017b02015116f93b579c7381119f618351c98d Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat.h')
-rw-r--r--src/plugins/nat/nat.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/plugins/nat/nat.h b/src/plugins/nat/nat.h
index 8bec46a3704..518f2002056 100644
--- a/src/plugins/nat/nat.h
+++ b/src/plugins/nat/nat.h
@@ -590,6 +590,9 @@ typedef struct snat_main_s
u8 out2in_dpo;
u8 endpoint_dependent;
+ /* Is translation memory size calculated or user defined */
+ u8 translation_memory_size_set;
+
u32 translation_buckets;
uword translation_memory_size;
u32 max_translations_per_thread;
@@ -1268,6 +1271,14 @@ void nat_free_session_data (snat_main_t * sm, snat_session_t * s,
int nat44_set_session_limit (u32 session_limit, u32 vrf_id);
/**
+ * @brief Update NAT44 session limit flushing all data (session limit, vrf id)
+ *
+ * @param session_limit Session limit
+ * @param vrf_id VRF id
+ * @return 0 on success, non-zero value otherwise
+ */
+int nat44_update_session_limit (u32 session_limit, u32 vrf_id);
+/**
* @brief Free NAT44 ED session data (lookup keys, external address port)
*
* @param s NAT session