FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
cnat_syslog.c File Reference
+ Include dependency graph for cnat_syslog.c:

Go to the source code of this file.

Macros

#define SYSLOG_DELIMITER   ' '
 
#define SYSLOG_FIELD_ABSENT   '-'
 
#define PLATFORM_SYSLOG_DISP_NODE_IDX   PLATFORM_NFV9_DISP_NODE_IDX
 
#define CNAT_SYSLOG_DEBUG_CODE   2
 
#define SYSLOG_DEBUG_PRINTF1(a)
 
#define SYSLOG_DEBUG_PRINTF2(a, b)
 
#define SYSLOG_DEBUG_PRINTF3(a, b, c)
 
#define SYSLOG_DEBUG_PRINTF4(a, b, c, d)
 

Functions

void syslog_params_show (u32 logging_index)
 
static int byte_to_ascii_decimal_unaligned (unsigned char *ptr, unsigned char num)
 
static int copy_ipv4_addr (unsigned char *ptr, u32 ipv4)
 
void cnat_syslog_fill_ip_header (cnat_syslog_logging_info_t *logging_info)
 
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_port_limit_exceeded (dslite_key_t *key, dslite_table_entry_t *dslite_entry)
 
void cnat_syslog_nat44_mapping_create (cnat_main_db_entry_t *db, cnat_vrfmap_t *vrfmap, cnat_session_entry_t *sdb, int bulk_alloc)
 
cnat_icmp_msg_t icmp_msg_gen_allowed ()
 
void cnat_syslog_nat44_mapping_delete (cnat_main_db_entry_t *db, cnat_vrfmap_t *vrfmap, cnat_session_entry_t *sdb, int bulk_alloc)
 
u32 cnat_get_unix_time_in_seconds (void)
 

Variables

cnat_syslog_global_info_t cnat_syslog_global_info
 
cnat_syslog_logging_info_tcnat_syslog_logging_info_pool
 
cnat_syslog_global_counters_t cnat_syslog_global_counter
 
u32 syslog_debug_flag
 
const unsigned char ascii_numbers [][3]
 

Macro Definition Documentation

#define CNAT_SYSLOG_DEBUG_CODE   2

Definition at line 42 of file cnat_syslog.c.

#define PLATFORM_SYSLOG_DISP_NODE_IDX   PLATFORM_NFV9_DISP_NODE_IDX

Definition at line 35 of file cnat_syslog.c.

#define SYSLOG_DEBUG_PRINTF1 (   a)

Definition at line 54 of file cnat_syslog.c.

#define SYSLOG_DEBUG_PRINTF2 (   a,
 
)

Definition at line 55 of file cnat_syslog.c.

#define SYSLOG_DEBUG_PRINTF3 (   a,
  b,
  c 
)

Definition at line 56 of file cnat_syslog.c.

#define SYSLOG_DEBUG_PRINTF4 (   a,
  b,
  c,
 
)

Definition at line 57 of file cnat_syslog.c.

#define SYSLOG_DELIMITER   ' '

Definition at line 27 of file cnat_syslog.c.

#define SYSLOG_FIELD_ABSENT   '-'

Definition at line 28 of file cnat_syslog.c.

Function Documentation

static int byte_to_ascii_decimal_unaligned ( unsigned char *  ptr,
unsigned char  num 
)
inlinestatic

Definition at line 345 of file cnat_syslog.c.

+ Here is the caller graph for this function:

u32 cnat_get_unix_time_in_seconds ( void  )

Definition at line 464 of file cnat_syslog.c.

+ Here is the call 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_fill_ip_header ( cnat_syslog_logging_info_t logging_info)
inline

Definition at line 405 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:

void cnat_syslog_nat44_mapping_create ( cnat_main_db_entry_t db,
cnat_vrfmap_t vrfmap,
cnat_session_entry_t sdb,
int  bulk_alloc 
)

Definition at line 436 of file cnat_syslog.c.

+ Here is the caller graph for this function:

void cnat_syslog_nat44_mapping_delete ( cnat_main_db_entry_t db,
cnat_vrfmap_t vrfmap,
cnat_session_entry_t sdb,
int  bulk_alloc 
)

Definition at line 453 of file cnat_syslog.c.

+ Here is the caller graph for this function:

static int copy_ipv4_addr ( unsigned char *  ptr,
u32  ipv4 
)
inlinestatic

Definition at line 365 of file cnat_syslog.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

cnat_icmp_msg_t icmp_msg_gen_allowed ( )

Definition at line 448 of file cnat_syslog.c.

+ Here is the caller graph for this function:

void syslog_params_show ( u32  logging_index)

Definition at line 62 of file cnat_syslog.c.

Variable Documentation

const unsigned char ascii_numbers[][3]

Definition at line 85 of file cnat_syslog.c.

cnat_syslog_global_counters_t cnat_syslog_global_counter

Definition at line 39 of file cnat_syslog.c.

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.

u32 syslog_debug_flag

Definition at line 47 of file cnat_debug_msg_handler.c.