FD.io VPP  v16.09
Vector Packet Processing
cnat_show.c File Reference
+ Include dependency graph for cnat_show.c:

Go to the source code of this file.

Macros

#define CNAT_MY_VRFMAP_PRINT
 
#define CNAT_MY_LOGGING_INFO_PRINT
 

Functions

void printf_ipv4 (u32 ad)
 
void cnat_main_db_entry_dump (cnat_main_db_entry_t *db)
 
void cnat_user_db_entry_dump (cnat_user_db_entry_t *up)
 
void cnat_user_db_entry_dump_summary (cnat_user_db_entry_t *up)
 
void cnat_db_dump_main_by_index (int argc, unsigned long *argv)
 
void cnat_db_dump_main (int argc, unsigned long *argv)
 
void cnat_db_dump_main_summary (int argc, unsigned long *argv)
 
void cnat_db_dump_user (int argc, unsigned long *argv)
 
void cnat_db_dump_user_summary (int argc, unsigned long *argv)
 
void cnat_db_dump_hashes (int argc, unsigned long *argv)
 
static void print_server_ip_address (vlib_main_t *vm, u32 ip)
 
void cnat_nfv9_show_collector (vlib_main_t *vm, cnat_nfv9_logging_info_t *my_nfv9_logging_info)
 
void cnat_db_dump_policy (int argc, unsigned long *argv)
 
void cnat_show_address_portmap_sumary (cnat_portmap_v2_t *pm)
 
void cnat_show_address_portmap (int verbose, int all, cnat_portmap_v2_t *pm, u16 port_limit)
 
void cnat_show_cdb_v2 (int verbose, int all)
 
void cnat_show_cdb_command_v2 (int argc, unsigned long *argv)
 
void cnat_show_ivrf_command_v2 (int argc, unsigned long *argv)
 
void cnat_show_ovrf_command_v2 (int argc, unsigned long *argv)
 
void cnat_timeout_db_entry_dump (cnat_timeout_db_entry_t *up)
 
void cnat_db_dump_timeout ()
 

Variables

u32 total_address_pool_allocated = 0
 

Macro Definition Documentation

#define CNAT_MY_LOGGING_INFO_PRINT
Value:
do { \
cnat_syslog_logging_info_t *my_syslog_info = 0; \
PLATFORM_DEBUG_PRINT("SYSLOG config: \n"); \
if (my_syslog_info->i_vrf == my_vrfmap->i_vrf) { \
PLATFORM_DEBUG_PRINT(" \ ipv4[0x%x], port[%u], hostname[%s]\n", \
my_syslog_info->ipv4_address, my_syslog_info->port, \
my_syslog_info->header_hostname); \
break; \
} \
})); \
}while (0) \
;
#define PLATFORM_DEBUG_PRINT(...)
#define pool_foreach(VAR, POOL, BODY)
Iterate through pool.
Definition: pool.h:348
cnat_syslog_logging_info_t * cnat_syslog_logging_info_pool
Definition: cnat_syslog.c:38

Definition at line 79 of file cnat_show.c.

#define CNAT_MY_VRFMAP_PRINT
Value:
PLATFORM_DEBUG_PRINT("i-uidx 0x%x o-uidx 0x%x i-vrfid 0x%x o-vrfid 0x%x\n" \
"status %d del time 0x%x tcp mss 0x%x pm list 0x%x\n" \
"bulk size %d\n" \
"ip n:1 %d\n" \
"NFV9 template index 0x%x\n" \
"SYSLOG template index 0x%x\n" \
"Netflow Session Logging %d \n" \
"Syslog Session Logging %d \n" \
"PCP Server 0x%x, Port %u \n", \
my_vrfmap->i_vrf, my_vrfmap->o_vrf, my_vrfmap->i_vrf_id, \
my_vrfmap->o_vrf_id, my_vrfmap->status, my_vrfmap->delete_time, \
my_vrfmap->tcp_mss, my_vrfmap->portmap_list, \
BULKSIZE_FROM_VRFMAP(my_vrfmap), \
my_vrfmap->ip_n_to_1, \
my_vrfmap->nfv9_logging_index, \
my_vrfmap->syslog_logging_index,\
my_vrfmap->nf_logging_policy, \
my_vrfmap->syslog_logging_policy, \
my_vrfmap->pcp_server_addr, \
my_vrfmap->pcp_server_port);
#define PLATFORM_DEBUG_PRINT(...)
#define BULKSIZE_FROM_VRFMAP(vrfmap)

Definition at line 47 of file cnat_show.c.

Function Documentation

void cnat_db_dump_hashes ( int  argc,
unsigned long *  argv 
)

Definition at line 286 of file cnat_show.c.

+ Here is the call graph for this function:

void cnat_db_dump_main ( int  argc,
unsigned long *  argv 
)

Definition at line 247 of file cnat_show.c.

+ Here is the call graph for this function:

void cnat_db_dump_main_by_index ( int  argc,
unsigned long *  argv 
)

Definition at line 214 of file cnat_show.c.

+ Here is the call graph for this function:

void cnat_db_dump_main_summary ( int  argc,
unsigned long *  argv 
)

Definition at line 256 of file cnat_show.c.

void cnat_db_dump_policy ( int  argc,
unsigned long *  argv 
)

Definition at line 519 of file cnat_show.c.

+ Here is the call graph for this function:

void cnat_db_dump_timeout ( )

Definition at line 794 of file cnat_show.c.

+ Here is the call graph for this function:

void cnat_db_dump_user ( int  argc,
unsigned long *  argv 
)

Definition at line 268 of file cnat_show.c.

+ Here is the call graph for this function:

void cnat_db_dump_user_summary ( int  argc,
unsigned long *  argv 
)

Definition at line 277 of file cnat_show.c.

+ Here is the call graph for this function:

void cnat_main_db_entry_dump ( cnat_main_db_entry_t db)

Definition at line 108 of file cnat_show.c.

+ Here is the caller graph for this function:

void cnat_nfv9_show_collector ( vlib_main_t vm,
cnat_nfv9_logging_info_t my_nfv9_logging_info 
)

Definition at line 502 of file cnat_show.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_show_address_portmap ( int  verbose,
int  all,
cnat_portmap_v2_t pm,
u16  port_limit 
)

Definition at line 627 of file cnat_show.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_show_address_portmap_sumary ( cnat_portmap_v2_t pm)

Definition at line 588 of file cnat_show.c.

+ Here is the caller graph for this function:

void cnat_show_cdb_command_v2 ( int  argc,
unsigned long *  argv 
)

Definition at line 697 of file cnat_show.c.

+ Here is the call graph for this function:

void cnat_show_cdb_v2 ( int  verbose,
int  all 
)

Definition at line 665 of file cnat_show.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void cnat_show_ivrf_command_v2 ( int  argc,
unsigned long *  argv 
)

Definition at line 713 of file cnat_show.c.

+ Here is the call graph for this function:

void cnat_show_ovrf_command_v2 ( int  argc,
unsigned long *  argv 
)

Definition at line 746 of file cnat_show.c.

+ Here is the call graph for this function:

void cnat_timeout_db_entry_dump ( cnat_timeout_db_entry_t up)

Definition at line 782 of file cnat_show.c.

+ Here is the caller graph for this function:

void cnat_user_db_entry_dump ( cnat_user_db_entry_t up)

Definition at line 158 of file cnat_show.c.

+ Here is the caller graph for this function:

void cnat_user_db_entry_dump_summary ( cnat_user_db_entry_t up)

Definition at line 186 of file cnat_show.c.

+ Here is the caller graph for this function:

static void print_server_ip_address ( vlib_main_t vm,
u32  ip 
)
static

Definition at line 492 of file cnat_show.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void printf_ipv4 ( u32  ad)

Definition at line 96 of file cnat_show.c.

+ Here is the caller graph for this function:

Variable Documentation

u32 total_address_pool_allocated = 0

Definition at line 43 of file cnat_show.c.