FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
cnat_api.c File Reference
+ Include dependency graph for cnat_api.c:

Go to the source code of this file.

Data Structures

struct  cnat_dump_walk_ctx_t_
 

Macros

#define REPLY_MSG_ID_BASE   cnat_base_msg_id
 

Typedefs

typedef struct cnat_dump_walk_ctx_t_ cnat_dump_walk_ctx_t
 

Functions

static void cnat_endpoint_decode (const vl_api_cnat_endpoint_t *in, cnat_endpoint_t *out)
 
static void cnat_endpoint_tuple_decode (const vl_api_cnat_endpoint_tuple_t *in, cnat_endpoint_tuple_t *out)
 
static void cnat_endpoint_encode (const cnat_endpoint_t *in, vl_api_cnat_endpoint_t *out)
 
static void vl_api_cnat_translation_update_t_handler (vl_api_cnat_translation_update_t *mp)
 
static void vl_api_cnat_translation_del_t_handler (vl_api_cnat_translation_del_t *mp)
 
static walk_rc_t cnat_translation_send_details (u32 cti, void *args)
 
static void vl_api_cnat_translation_dump_t_handler (vl_api_cnat_translation_dump_t *mp)
 
static void ip_address2_from_46 (const ip46_address_t *nh, ip_address_family_t af, ip_address_t *ip)
 
static walk_rc_t cnat_session_send_details (const cnat_session_t *session, void *args)
 
static void vl_api_cnat_session_dump_t_handler (vl_api_cnat_session_dump_t *mp)
 
static void vl_api_cnat_session_purge_t_handler (vl_api_cnat_session_purge_t *mp)
 
static void vl_api_cnat_set_snat_addresses_t_handler (vl_api_cnat_set_snat_addresses_t *mp)
 
static void vl_api_cnat_add_del_snat_prefix_t_handler (vl_api_cnat_add_del_snat_prefix_t *mp)
 
static clib_error_tcnat_api_init (vlib_main_t *vm)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

static u32 cnat_base_msg_id
 Base message ID fot the plugin. More...
 

Macro Definition Documentation

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   cnat_base_msg_id

Definition at line 42 of file cnat_api.c.

Typedef Documentation

◆ cnat_dump_walk_ctx_t

Function Documentation

◆ cnat_api_init()

static clib_error_t* cnat_api_init ( vlib_main_t vm)
static

Definition at line 294 of file cnat_api.c.

+ Here is the call graph for this function:

◆ cnat_endpoint_decode()

static void cnat_endpoint_decode ( const vl_api_cnat_endpoint_t *  in,
cnat_endpoint_t out 
)
static

Definition at line 47 of file cnat_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cnat_endpoint_encode()

static void cnat_endpoint_encode ( const cnat_endpoint_t in,
vl_api_cnat_endpoint_t *  out 
)
static

Definition at line 63 of file cnat_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cnat_endpoint_tuple_decode()

static void cnat_endpoint_tuple_decode ( const vl_api_cnat_endpoint_tuple_t *  in,
cnat_endpoint_tuple_t out 
)
static

Definition at line 55 of file cnat_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cnat_session_send_details()

static walk_rc_t cnat_session_send_details ( const cnat_session_t session,
void *  args 
)
static

Definition at line 195 of file cnat_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cnat_translation_send_details()

static walk_rc_t cnat_translation_send_details ( u32  cti,
void *  args 
)
static

Definition at line 131 of file cnat_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ip_address2_from_46()

static void ip_address2_from_46 ( const ip46_address_t *  nh,
ip_address_family_t  af,
ip_address_t ip 
)
static

Definition at line 187 of file cnat_api.c.

+ Here is the caller graph for this function:

◆ vl_api_cnat_add_del_snat_prefix_t_handler()

static void vl_api_cnat_add_del_snat_prefix_t_handler ( vl_api_cnat_add_del_snat_prefix_t mp)
static

Definition at line 276 of file cnat_api.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl_api_cnat_session_dump_t_handler()

static void vl_api_cnat_session_dump_t_handler ( vl_api_cnat_session_dump_t mp)
static

Definition at line 232 of file cnat_api.c.

+ Here is the call graph for this function:

◆ vl_api_cnat_session_purge_t_handler()

static void vl_api_cnat_session_purge_t_handler ( vl_api_cnat_session_purge_t mp)
static

Definition at line 249 of file cnat_api.c.

+ Here is the call graph for this function:

◆ vl_api_cnat_set_snat_addresses_t_handler()

static void vl_api_cnat_set_snat_addresses_t_handler ( vl_api_cnat_set_snat_addresses_t mp)
static

Definition at line 262 of file cnat_api.c.

+ Here is the call graph for this function:

◆ vl_api_cnat_translation_del_t_handler()

static void vl_api_cnat_translation_del_t_handler ( vl_api_cnat_translation_del_t mp)
static

Definition at line 114 of file cnat_api.c.

+ Here is the call graph for this function:

◆ vl_api_cnat_translation_dump_t_handler()

static void vl_api_cnat_translation_dump_t_handler ( vl_api_cnat_translation_dump_t mp)
static

Definition at line 170 of file cnat_api.c.

+ Here is the call graph for this function:

◆ vl_api_cnat_translation_update_t_handler()

static void vl_api_cnat_translation_update_t_handler ( vl_api_cnat_translation_update_t mp)
static

Definition at line 71 of file cnat_api.c.

+ Here is the call graph for this function:

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

Variable Documentation

◆ cnat_base_msg_id

u32 cnat_base_msg_id
static

Base message ID fot the plugin.

Definition at line 40 of file cnat_api.c.