Go to the source code of this file.
|
void | cnat_table_entry_fill_map (u32 start_addr, u32 end_addr, cnat_portmap_v2_t **port_map_holder) |
|
void | cnat_delete_session_db_entry (cnat_session_entry_t *ep, u8 log) |
|
void | handle_cnat_port_exceeded_logging (cnat_user_db_entry_t *udb, cnat_key_t *key, cnat_vrfmap_t *vrfmap) |
|
void | port_exceeded_msg_log (u32 src_addr, u16 i_vrf) |
|
static void | log_port_alloc_error (cnat_errno_t error, cnat_key_t *k) |
|
void | cnat_db_debug_error (cnat_db_key_bucket_t *u_ki, cnat_errno_t error) |
|
void | dslite_db_debug_error (dslite_db_key_bucket_t *u_ki, cnat_errno_t error) |
|
void | cnat_db_debug_i2o_drop (cnat_db_key_bucket_t *ki) |
|
void | cnat_db_in2out_hash_delete (cnat_main_db_entry_t *ep, cnat_user_db_entry_t *up) |
|
void | cnat_db_out2in_hash_delete (cnat_main_db_entry_t *ep) |
|
cnat_main_db_entry_t * | cnat_main_db_lookup_entry (cnat_db_key_bucket_t *ki) |
|
void | cnat_user_db_delete (cnat_user_db_entry_t *up) |
|
cnat_user_db_entry_t * | cnat_user_db_lookup_entry (cnat_db_key_bucket_t *uki) |
|
cnat_user_db_entry_t * | cnat_user_db_create_entry (cnat_db_key_bucket_t *uki, u32 portmap_index) |
|
cnat_main_db_entry_t * | cnat_create_main_db_entry_and_hash (cnat_db_key_bucket_t *ki, cnat_db_key_bucket_t *ko, cnat_user_db_entry_t *udb) |
|
static void | pptp_clear_all_channels (cnat_main_db_entry_t *db) |
|
void | pptp_remove_channel_from_tunnel (cnat_main_db_entry_t *db) |
|
void | cnat_delete_main_db_entry_v2 (cnat_main_db_entry_t *ep) |
|
cnat_main_db_entry_t * | cnat_main_db_lookup_entry_out2in (cnat_db_key_bucket_t *ko) |
|
cnat_session_entry_t * | cnat_handle_1to2_session (cnat_main_db_entry_t *mdb, cnat_key_t *dest_info) |
|
void | cnat_add_dest_n_log (cnat_main_db_entry_t *mdb, cnat_key_t *dest_info) |
|
cnat_main_db_entry_t * | cnat_get_main_db_entry_v2 (cnat_db_key_bucket_t *ki, port_pair_t port_pair_type, port_type_t port_type, cnat_gen_icmp_info *info, cnat_key_t *dest_info) |
|
cnat_main_db_entry_t * | cnat_create_static_main_db_entry_v2 (cnat_db_key_bucket_t *ki, cnat_db_key_bucket_t *ko, cnat_vrfmap_t *my_vrfmap, cnat_gen_icmp_info *info) |
|
cnat_main_db_entry_t * | dslite_main_db_lookup_entry (dslite_db_key_bucket_t *ki) |
|
cnat_user_db_entry_t * | dslite_user_db_lookup_entry (dslite_db_key_bucket_t *uki) |
|
cnat_user_db_entry_t * | dslite_user_db_create_entry (dslite_db_key_bucket_t *uki, u32 portmap_index) |
|
cnat_main_db_entry_t * | dslite_create_main_db_entry_and_hash (dslite_db_key_bucket_t *ki, cnat_db_key_bucket_t *ko, cnat_user_db_entry_t *udb) |
|
static u32 | cnat_timeout_db_hash_lookup (cnat_key_t t_key) |
|
u16 | query_and_update_db_timeout (void *db, u8 db_type) |
|
static void | cnat_timeout_db_hash_add (cnat_timeout_db_entry_t *t_entry) |
|
u16 | cnat_timeout_db_create (cnat_timeout_t t_entry) |
|
void | cnat_timeout_db_delete (cnat_key_t t_key) |
|
void | cnat_session_db_hash_delete (cnat_session_entry_t *ep) |
|
cnat_session_entry_t * | cnat_session_db_edm_lookup_entry (cnat_key_t *ko, u32 session_head_index, u32 main_db_index) |
|
cnat_session_entry_t * | cnat_session_db_lookup_entry (cnat_key_t *ko, u32 main_db_index) |
|
cnat_session_entry_t * | cnat_create_session_db_entry (cnat_key_t *ko, cnat_main_db_entry_t *bdb, u8 log) |
|
void | cnat_dest_update_main2session (cnat_main_db_entry_t *mdb, cnat_session_entry_t *sdb) |
|
void | cnat_dest_update_session2main (cnat_main_db_entry_t *mdb, cnat_session_entry_t *sdb) |
|
cnat_main_db_entry_t * | dslite_get_main_db_entry_v2 (dslite_db_key_bucket_t *ki, port_pair_t port_pair_type, port_type_t port_type, cnat_gen_icmp_info *info, dslite_table_entry_t *dslite_entry_ptr, cnat_key_t *dest_info) |
|
void | cnat_db_v2_init (void) |
|
#define CHECK_CLEAR_PORT_LIMIT_EXCEED_FLAG |
( |
|
udb, |
|
|
|
max_limit |
|
) |
| |
Value: if(udb->ntranslations < \
max_limit >= 10) { \
} \
}
#define CNAT_USER_DB_PORT_LIMIT_EXCEEDED
#define PORT_LIMIT_LOW_THRESHOLD_FOR_SYSLOG
Definition at line 260 of file cnat_db_v2.c.
#define CNAT_DEBUG_INSIDE_ERR |
( |
|
err | ) |
|
Value:}
#define CNAT_DEBUG_ERR_TCP
#define CNAT_DEBUG_ERR_UDP
void cnat_db_debug_error(cnat_db_key_bucket_t *u_ki, cnat_errno_t error)
#define CNAT_DEBUG_ERR_ICMP
Definition at line 235 of file cnat_db_v2.c.
#define CNAT_SET_ICMP_MSG_INFO |
Value:}
#define CNAT_MAX_VRFMAP_ENTRIES
cnat_svi_params_entry svi_params_array[CNAT_MAX_VRFMAP_ENTRIES]
cnat_icmp_msg_t icmp_msg_gen_allowed()
Definition at line 228 of file cnat_db_v2.c.
#define DSLITE_DEBUG_INSIDE_ERR |
( |
|
err | ) |
|
Value:}
#define CNAT_DEBUG_ERR_TCP
void dslite_db_debug_error(dslite_db_key_bucket_t *u_ki, cnat_errno_t error)
#define CNAT_DEBUG_ERR_UDP
#define CNAT_DEBUG_ERR_ICMP
Definition at line 245 of file cnat_db_v2.c.
#define foreach_cnat_db_v2_error _(DROP, "error-drop packets") |
#define HASH_TABLE_SIZE 8192 |
#define PORT_LIMIT_LOW_THRESHOLD_FOR_SYSLOG 7 |
#define PREDICT_FALSE |
( |
|
x | ) |
(x) |
#define PREDICT_TRUE |
( |
|
x | ) |
(x) |
#define THROTTLE_TIME 180 |
Enumerator |
---|
CNAT_DB_V2_N_ERROR |
|
Definition at line 67 of file cnat_db_v2.c.
void port_exceeded_msg_log |
( |
u32 |
src_addr, |
|
|
u16 |
i_vrf |
|
) |
| |
u16 query_and_update_db_timeout |
( |
void * |
db, |
|
|
u8 |
db_type |
|
) |
| |
char* cnat_db_v2_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_cnat_db_v2_error
Definition at line 74 of file cnat_db_v2.c.
u64 in2out_drops_port_limit_exceeded |
u64 in2out_drops_resource_depletion |
u64 in2out_drops_system_limit_reached |
u32 last_log_timestamp = 0 |
u32 last_user_dyn_port_exc_timestamp = 0 |
u32 last_user_stat_port_exc_timestamp = 0 |
u64 no_translation_entry_drops |