FD.io VPP  v21.06-3-gbb25fbf28
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_set_snat_policy_t_handler (vl_api_cnat_set_snat_policy_t *mp)
 
static void vl_api_cnat_snat_policy_add_del_exclude_pfx_t_handler (vl_api_cnat_snat_policy_add_del_exclude_pfx_t *mp)
 
static void vl_api_cnat_snat_policy_add_del_if_t_handler (vl_api_cnat_snat_policy_add_del_if_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 376 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 75 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 221 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 155 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 213 of file cnat_api.c.

+ 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 291 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 261 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 278 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 307 of file cnat_api.c.

+ Here is the call graph for this function:

◆ vl_api_cnat_set_snat_policy_t_handler()

static void vl_api_cnat_set_snat_policy_t_handler ( vl_api_cnat_set_snat_policy_t mp)
static

Definition at line 325 of file cnat_api.c.

+ Here is the call graph for this function:

◆ vl_api_cnat_snat_policy_add_del_exclude_pfx_t_handler()

static void vl_api_cnat_snat_policy_add_del_exclude_pfx_t_handler ( vl_api_cnat_snat_policy_add_del_exclude_pfx_t mp)
static

Definition at line 337 of file cnat_api.c.

+ Here is the call graph for this function:

◆ vl_api_cnat_snat_policy_add_del_if_t_handler()

static void vl_api_cnat_snat_policy_add_del_if_t_handler ( vl_api_cnat_snat_policy_add_del_if_t mp)
static

Definition at line 354 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 138 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 196 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 88 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.