FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
cnat_src_policy.c File Reference
+ Include dependency graph for cnat_src_policy.c:

Go to the source code of this file.

Functions

void cnat_register_vip_src_policy (cnat_vip_source_policy_t fp)
 
cnat_source_policy_errors_t cnat_vip_default_source_policy (vlib_main_t *vm, vlib_buffer_t *b, cnat_session_t *session, u32 *rsession_flags, const cnat_translation_t *ct, cnat_node_ctx_t *ctx)
 
static cnat_src_port_allocator_tcnat_get_src_port_allocator (ip_protocol_t iproto)
 
void cnat_free_port (u16 port, ip_protocol_t iproto)
 
int cnat_allocate_port (u16 *port, ip_protocol_t iproto)
 
static clib_error_tcnat_src_policy_init (vlib_main_t *vm)
 

Variables

cnat_src_policy_main_t cnat_src_policy_main
 

Function Documentation

◆ cnat_allocate_port()

int cnat_allocate_port ( u16 port,
ip_protocol_t  iproto 
)

Definition at line 109 of file cnat_src_policy.c.

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

◆ cnat_free_port()

void cnat_free_port ( u16  port,
ip_protocol_t  iproto 
)

Definition at line 97 of file cnat_src_policy.c.

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

◆ cnat_get_src_port_allocator()

static cnat_src_port_allocator_t* cnat_get_src_port_allocator ( ip_protocol_t  iproto)
inlinestatic

Definition at line 78 of file cnat_src_policy.c.

+ Here is the caller graph for this function:

◆ cnat_register_vip_src_policy()

void cnat_register_vip_src_policy ( cnat_vip_source_policy_t  fp)

Definition at line 25 of file cnat_src_policy.c.

◆ cnat_src_policy_init()

static clib_error_t* cnat_src_policy_init ( vlib_main_t vm)
static

Definition at line 134 of file cnat_src_policy.c.

+ Here is the call graph for this function:

◆ cnat_vip_default_source_policy()

cnat_source_policy_errors_t cnat_vip_default_source_policy ( vlib_main_t vm,
vlib_buffer_t b,
cnat_session_t session,
u32 rsession_flags,
const cnat_translation_t ct,
cnat_node_ctx_t ctx 
)

Definition at line 31 of file cnat_src_policy.c.

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

Variable Documentation

◆ cnat_src_policy_main

cnat_src_policy_main_t cnat_src_policy_main

Definition at line 22 of file cnat_src_policy.c.