FD.io VPP  v21.01.1
Vector Packet Processing
nat_dpo.c File Reference
+ Include dependency graph for nat_dpo.c:

Go to the source code of this file.

Functions

void nat_dpo_create (dpo_proto_t dproto, u32 aftr_index, dpo_id_t *dpo)
 
u8format_nat_dpo (u8 *s, va_list *args)
 
static void nat_dpo_lock (dpo_id_t *dpo)
 
static void nat_dpo_unlock (dpo_id_t *dpo)
 
void nat_dpo_module_init (void)
 

Variables

dpo_type_t nat_dpo_type
 
static const dpo_vft_t nat_dpo_vft
 
static const char *const nat_ip4_nodes []
 
static const char *const nat_ip6_nodes []
 
static const char *const *const nat_nodes [DPO_PROTO_NUM]
 

Function Documentation

◆ format_nat_dpo()

u8* format_nat_dpo ( u8 s,
va_list *  args 
)

Definition at line 28 of file nat_dpo.c.

◆ nat_dpo_create()

void nat_dpo_create ( dpo_proto_t  dproto,
u32  aftr_index,
dpo_id_t dpo 
)

Definition at line 22 of file nat_dpo.c.

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

◆ nat_dpo_lock()

static void nat_dpo_lock ( dpo_id_t dpo)
static

Definition at line 37 of file nat_dpo.c.

◆ nat_dpo_module_init()

void nat_dpo_module_init ( void  )

Definition at line 68 of file nat_dpo.c.

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

◆ nat_dpo_unlock()

static void nat_dpo_unlock ( dpo_id_t dpo)
static

Definition at line 42 of file nat_dpo.c.

Variable Documentation

◆ nat_dpo_type

dpo_type_t nat_dpo_type

Definition at line 19 of file nat_dpo.c.

◆ nat_dpo_vft

const dpo_vft_t nat_dpo_vft
static
Initial value:
= {
.dv_lock = nat_dpo_lock,
.dv_unlock = nat_dpo_unlock,
.dv_format = format_nat_dpo,
}
u8 * format_nat_dpo(u8 *s, va_list *args)
Definition: nat_dpo.c:28
static void nat_dpo_unlock(dpo_id_t *dpo)
Definition: nat_dpo.c:42
static void nat_dpo_lock(dpo_id_t *dpo)
Definition: nat_dpo.c:37

Definition at line 46 of file nat_dpo.c.

◆ nat_ip4_nodes

const char* const nat_ip4_nodes[]
static
Initial value:
= {
"nat44-out2in",
NULL,
}

Definition at line 52 of file nat_dpo.c.

◆ nat_ip6_nodes

const char* const nat_ip6_nodes[]
static
Initial value:
= {
NULL,
}

Definition at line 57 of file nat_dpo.c.

◆ nat_nodes

const char* const* const nat_nodes[DPO_PROTO_NUM]
static
Initial value:
= {
[DPO_PROTO_MPLS] = NULL,
}
static const char *const nat_ip4_nodes[]
Definition: nat_dpo.c:52
static const char *const nat_ip6_nodes[]
Definition: nat_dpo.c:57

Definition at line 61 of file nat_dpo.c.