FD.io VPP  v16.09
Vector Packet Processing
cnat_syslog.h File Reference
+ Include dependency graph for cnat_syslog.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cnat_syslog_logging_info_t
 
struct  cnat_syslog_global_info_t
 
struct  cnat_syslog_global_counters_t
 

Macros

#define SYSLOG_CONFIG_DEBUG_PRINTF(level, ...)   if (config_debug_level > level) PLATFORM_DEBUG_PRINT(__VA_ARGS__);
 
#define SYSLOG_TIMESTAMP_LENGTH   20
 
#define CNAT_SYSLOG_VERSION_NUMBER   1
 
#define CNAT_SYSLOG_PRIORITY   16*8+6
 
#define MAX_SYSLOG_HOSTNAME_LEN   32
 
#define MAX_SYSLOG_HEADER_LEN   75
 
#define MAX_SYSLOG_RECORD_LEN   145
 
#define SYSLOG_DEF_PATH_MTU   1500
 

Enumerations

enum  syslog_service_type_t { NAT44, DSLite }
 
enum  syslog_event_type_t {
  userbased_assign, userbased_withdraw, sessionbased_assign, sessionbased_withdraw,
  sessionbased_assignD, sessionbased_withdrawD, port_block_runout, tcp_seq_mismatch,
  max_syslog_event_type
}
 

Functions

void cnat_syslog_logging_init ()
 
void cnat_syslog_log_mapping_create (cnat_main_db_entry_t *db, cnat_vrfmap_t *vrfmap)
 
void cnat_syslog_log_mapping_delete (cnat_main_db_entry_t *db, cnat_vrfmap_t *vrfmap)
 
void cnat_syslog_ds_lite_mapping_create (cnat_main_db_entry_t *db, dslite_table_entry_t *dslite_entry, cnat_session_entry_t *sdb, int bulk_alloc)
 
void cnat_syslog_ds_lite_port_limit_exceeded (dslite_key_t *key, dslite_table_entry_t *dslite_entry)
 

Variables

cnat_syslog_logging_info_tcnat_syslog_logging_info_pool
 
cnat_syslog_global_info_t cnat_syslog_global_info
 

Macro Definition Documentation

#define CNAT_SYSLOG_PRIORITY   16*8+6

Definition at line 68 of file cnat_syslog.h.

#define CNAT_SYSLOG_VERSION_NUMBER   1

Definition at line 67 of file cnat_syslog.h.

#define MAX_SYSLOG_HEADER_LEN   75

Definition at line 81 of file cnat_syslog.h.

#define MAX_SYSLOG_HOSTNAME_LEN   32

Definition at line 71 of file cnat_syslog.h.

#define MAX_SYSLOG_RECORD_LEN   145

Definition at line 94 of file cnat_syslog.h.

#define SYSLOG_CONFIG_DEBUG_PRINTF (   level,
  ... 
)    if (config_debug_level > level) PLATFORM_DEBUG_PRINT(__VA_ARGS__);

Definition at line 33 of file cnat_syslog.h.

#define SYSLOG_DEF_PATH_MTU   1500

Definition at line 188 of file cnat_syslog.h.

#define SYSLOG_TIMESTAMP_LENGTH   20

Definition at line 65 of file cnat_syslog.h.

Enumeration Type Documentation

Enumerator
userbased_assign 
userbased_withdraw 
sessionbased_assign 
sessionbased_withdraw 
sessionbased_assignD 
sessionbased_withdrawD 
port_block_runout 
tcp_seq_mismatch 
max_syslog_event_type 

Definition at line 101 of file cnat_syslog.h.

Enumerator
NAT44 
DSLite 

Definition at line 96 of file cnat_syslog.h.

Function Documentation

void cnat_syslog_ds_lite_mapping_create ( cnat_main_db_entry_t db,
dslite_table_entry_t dslite_entry,
cnat_session_entry_t sdb,
int  bulk_alloc 
)

+ Here is the caller graph for this function:

void cnat_syslog_ds_lite_port_limit_exceeded ( dslite_key_t key,
dslite_table_entry_t dslite_entry 
)

Definition at line 429 of file cnat_syslog.c.

+ Here is the caller graph for this function:

void cnat_syslog_log_mapping_create ( cnat_main_db_entry_t db,
cnat_vrfmap_t vrfmap 
)

Definition at line 417 of file cnat_syslog.c.

void cnat_syslog_log_mapping_delete ( cnat_main_db_entry_t db,
cnat_vrfmap_t vrfmap 
)

Definition at line 423 of file cnat_syslog.c.

void cnat_syslog_logging_init ( )

Definition at line 412 of file cnat_syslog.c.

+ Here is the caller graph for this function:

Variable Documentation

cnat_syslog_global_info_t cnat_syslog_global_info

Definition at line 37 of file cnat_syslog.c.

cnat_syslog_logging_info_t* cnat_syslog_logging_info_pool

Definition at line 38 of file cnat_syslog.c.