FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
pnat_node.c File Reference
+ Include dependency graph for pnat_node.c:

Go to the source code of this file.

Functions

 VNET_FEATURE_INIT (pnat_input, static)
 
 VNET_FEATURE_INIT (pnat_output, static)
 

Variables

vlib_main_tvm
 
vlib_main_t vlib_node_runtime_tnode
 
vlib_main_t vlib_node_runtime_t vlib_frame_tframe
 
vlib_node_registration_t pnat_input_node
 (constructor) VLIB_REGISTER_NODE (pnat_input_node) More...
 
vlib_node_registration_t pnat_output_node
 (constructor) VLIB_REGISTER_NODE (pnat_output_node) More...
 

Function Documentation

◆ VNET_FEATURE_INIT() [1/2]

VNET_FEATURE_INIT ( pnat_input  ,
static   
)

◆ VNET_FEATURE_INIT() [2/2]

VNET_FEATURE_INIT ( pnat_output  ,
static   
)

Variable Documentation

◆ frame

Initial value:

Definition at line 39 of file pnat_node.c.

◆ node

Definition at line 39 of file pnat_node.c.

◆ pnat_input_node

vlib_node_registration_t pnat_input_node
Initial value:
= {
.name = "pnat-input",
.vector_size = sizeof(u32),
.format_trace = format_pnat_trace,
.n_errors = PNAT_N_ERROR,
.error_counters = pnat_error_counters,
.n_next_nodes = PNAT_N_NEXT,
.next_nodes =
{
[PNAT_NEXT_DROP] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (pnat_input_node)

Definition at line 48 of file pnat_node.c.

◆ pnat_output_node

vlib_node_registration_t pnat_output_node
Initial value:
= {
.name = "pnat-output",
.vector_size = sizeof(u32),
.format_trace = format_pnat_trace,
.n_errors = PNAT_N_ERROR,
.error_counters = pnat_error_counters,
.sibling_of = "pnat-input",
}

(constructor) VLIB_REGISTER_NODE (pnat_output_node)

Definition at line 62 of file pnat_node.c.

◆ vm

Definition at line 39 of file pnat_node.c.

format_pnat_trace
static u8 * format_pnat_trace(u8 *s, va_list *args)
Definition: pnat_node.h:30
VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
PNAT_NEXT_DROP
@ PNAT_NEXT_DROP
Definition: pnat_node.h:26
VLIB_RX
@ VLIB_RX
Definition: defs.h:46
frame
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
Definition: pnat_node.c:39
pnat_node_inline
static_always_inline uword pnat_node_inline(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, pnat_attachment_point_t attachment, int dir)
Definition: pnat_node.h:149
node
vlib_main_t vlib_node_runtime_t * node
Definition: pnat_node.c:39
u32
unsigned int u32
Definition: types.h:88
pnat_error_counters
vlib_error_desc_t pnat_error_counters[10]
Definition: pnat_test_stubs.h:41
PNAT_N_NEXT
@ PNAT_N_NEXT
Definition: pnat_node.h:26
vm
vlib_main_t * vm
Definition: pnat_node.c:39
PNAT_IP4_INPUT
@ PNAT_IP4_INPUT
Definition: pnat.api:33
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123