FD.io VPP  v21.01.1
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 int cnat_endpoint_decode (const vl_api_cnat_endpoint_t *in, cnat_endpoint_t *out)
 
static int 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_get_snat_addresses_t_handler (vl_api_cnat_get_snat_addresses_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 340 of file cnat_api.c.

+ Here is the call graph for this function:

◆ cnat_endpoint_decode()

static int 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 74 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 int cnat_endpoint_tuple_decode ( const vl_api_cnat_endpoint_tuple_t *  in,
cnat_endpoint_tuple_t out 
)
static

Definition at line 62 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 217 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 153 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 209 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 322 of file cnat_api.c.

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

◆ vl_api_cnat_get_snat_addresses_t_handler()

static void vl_api_cnat_get_snat_addresses_t_handler ( vl_api_cnat_get_snat_addresses_t mp)
static

Definition at line 286 of file cnat_api.c.

+ Here is the call 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 256 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 273 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 303 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 136 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 192 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 87 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.