diff options
author | Filip Varga <fivarga@cisco.com> | 2020-04-16 13:20:25 +0200 |
---|---|---|
committer | Filip Varga <fivarga@cisco.com> | 2020-05-04 12:15:02 +0200 |
commit | 6bb080f1e54391b161cf211a9cfa3f488f2fd331 (patch) | |
tree | 8af5f6df9baaacb2a6f10af8ff51e48f7de0846a /src/plugins/nat/nat.h | |
parent | 2f1563129ad8d34d365f5ef8620ff76ff7b08e70 (diff) |
nat: per vrf session limits
Type: improvement
Change-Id: I170256ab47978db34fb0ff6808d9cd54ab872410
Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat.h')
-rw-r--r-- | src/plugins/nat/nat.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/nat/nat.h b/src/plugins/nat/nat.h index 59a12437f77..9331901a3bc 100644 --- a/src/plugins/nat/nat.h +++ b/src/plugins/nat/nat.h @@ -634,12 +634,16 @@ typedef struct snat_main_s u8 deterministic; u8 out2in_dpo; u8 endpoint_dependent; + u32 translation_buckets; uword translation_memory_size; u32 max_translations; + u32 *max_translations_per_fib; + u32 user_buckets; uword user_memory_size; u32 max_translations_per_user; + u32 outside_vrf_id; u32 outside_fib_index; u32 inside_vrf_id; @@ -1254,6 +1258,15 @@ void nat_free_session_data (snat_main_t * sm, snat_session_t * s, u32 thread_index, u8 is_ha); /** + * @brief Set NAT44 session limit (session limit, vrf id) + * + * @param session_limit Session limit + * @param vrf_id VRF id + * @return 0 on success, non-zero value otherwise + */ +int nat44_set_session_limit (u32 session_limit, u32 vrf_id); + +/** * @brief Free NAT44 ED session data (lookup keys, external addrres port) * * @param s NAT session |