24 #define cnat_error(n,s) s, 40 else if (
unformat (input,
"%d", &port))
111 else if (
unformat (input,
"session-db-memory %U",
114 else if (
unformat (input,
"translation-db-buckets %u",
117 else if (
unformat (input,
"translation-db-memory %U",
122 else if (
unformat (input,
"snat-db-memory %U",
125 else if (
unformat (input,
"session-cleanup-timeout %f",
enum fib_source_t_ fib_source_t
The different sources that can create a route.
#define CNAT_DEFAULT_TRANSLATION_MEMORY
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
add paths without path extensions
void throttle_init(throttle_t *t, u32 n_threads, f64 time)
#define clib_bitmap_validate(v, n_bits)
uword unformat_cnat_ep(unformat_input_t *input, va_list *args)
#define VLIB_INIT_FUNCTION(x)
#define clib_error_return(e, args...)
#define CNAT_DEFAULT_SESSION_MAX_AGE
fib_source_t fib_source_allocate(const char *name, fib_source_priority_t prio, fib_source_behaviour_t bh)
static void clib_spinlock_init(clib_spinlock_t *p)
static void clib_rwlock_init(clib_rwlock_t *p)
fib_source_t cnat_fib_source
cnat_timestamp_t * cnat_timestamps
clib_spinlock_t src_ports_lock
u8 * format_cnat_endpoint(u8 *s, va_list *args)
#define CNAT_FIB_SOURCE_PRIORITY
static clib_error_t * cnat_config(vlib_main_t *vm, unformat_input_t *input)
uword unformat_ip_address(unformat_input_t *input, va_list *args)
A throttle Used in the data plane to decide if a given hash should be throttled, i.e.
vlib_thread_main_t vlib_thread_main
#define VLIB_EARLY_CONFIG_FUNCTION(x, n,...)
clib_bitmap_t * src_ports
#define CNAT_DEFAULT_TCP_MAX_AGE
u8 * format_ip_address(u8 *s, va_list *args)
#define CNAT_DEFAULT_SNAT_MEMORY
#define CNAT_DEFAULT_SNAT_BUCKETS
uword session_hash_memory
#define CNAT_DEFAULT_SESSION_BUCKETS
u32 translation_hash_buckets
#define CNAT_DEFAULT_TRANSLATION_BUCKETS
#define CNAT_DEFAULT_SESSION_MEMORY
uword unformat_cnat_ep_tuple(unformat_input_t *input, va_list *args)
uword translation_hash_memory
static clib_error_t * cnat_types_init(vlib_main_t *vm)
char * cnat_error_strings[]
#define CNAT_DEFAULT_SCANNER_TIMEOUT