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

Go to the source code of this file.

Data Structures

struct  ipip_rx_trace_t
 

Macros

#define foreach_ipip_input_next
 

Enumerations

enum  ipip_input_next_t { IPIP_INPUT_N_NEXT }
 

Functions

static u8format_ipip_rx_trace (u8 *s, va_list *args)
 
static uword ipip_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame, bool is_ipv6)
 
VLIB_NODE_FN() ipip4_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
VLIB_NODE_FN() ipip6_input_node (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 

Variables

static char * ipip_error_strings []
 
vlib_node_registration_t ipip4_input_node
 (constructor) VLIB_REGISTER_NODE (ipip4_input_node) More...
 
vlib_node_registration_t ipip6_input_node
 (constructor) VLIB_REGISTER_NODE (ipip6_input_node) More...
 

Macro Definition Documentation

◆ foreach_ipip_input_next

#define foreach_ipip_input_next
Value:
_ (PUNT, "error-punt") \
_ (DROP, "error-drop") \
_ (IP4_INPUT, "ip4-input") \
_ (IP6_INPUT, "ip6-input") \
_ (MPLS_INPUT, "mpls-input")

Definition at line 25 of file node.c.

Enumeration Type Documentation

◆ ipip_input_next_t

Enumerator
IPIP_INPUT_N_NEXT 

Definition at line 32 of file node.c.

Function Documentation

◆ format_ipip_rx_trace()

static u8* format_ipip_rx_trace ( u8 s,
va_list *  args 
)
static

Definition at line 50 of file node.c.

◆ ipip4_input_node()

VLIB_NODE_FN() ipip4_input_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 245 of file node.c.

+ Here is the call graph for this function:

◆ ipip6_input_node()

VLIB_NODE_FN() ipip6_input_node ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)

Definition at line 251 of file node.c.

+ Here is the call graph for this function:

◆ ipip_input()

static uword ipip_input ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame,
bool  is_ipv6 
)
inlinestatic

Definition at line 63 of file node.c.

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

Variable Documentation

◆ ipip4_input_node

vlib_node_registration_t ipip4_input_node
Initial value:
= {
.name = "ipip4-input",
.vector_size = sizeof(u32),
.n_errors = IPIP_N_ERROR,
.error_strings = ipip_error_strings,
.n_next_nodes = IPIP_INPUT_N_NEXT,
.next_nodes =
{
#define _(s, n)
},
.format_trace = format_ipip_rx_trace,
}

(constructor) VLIB_REGISTER_NODE (ipip4_input_node)

Definition at line 264 of file node.c.

◆ ipip6_input_node

vlib_node_registration_t ipip6_input_node
Initial value:
= {
.name = "ipip6-input",
.vector_size = sizeof(u32),
.n_errors = IPIP_N_ERROR,
.error_strings = ipip_error_strings,
.n_next_nodes = IPIP_INPUT_N_NEXT,
.next_nodes =
{
#define _(s, n)
},
.format_trace = format_ipip_rx_trace,
}

(constructor) VLIB_REGISTER_NODE (ipip6_input_node)

Definition at line 280 of file node.c.

◆ ipip_error_strings

char* ipip_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}

Definition at line 257 of file node.c.

IPIP_N_ERROR
@ IPIP_N_ERROR
Definition: ipip.h:41
foreach_ipip_error
#define foreach_ipip_error
Definition: ipip.h:29
DROP
DROP
Definition: error.def:41
format_ipip_rx_trace
static u8 * format_ipip_rx_trace(u8 *s, va_list *args)
Definition: node.c:50
IPIP_INPUT_N_NEXT
@ IPIP_INPUT_N_NEXT
Definition: node.c:37
ipip_error_strings
static char * ipip_error_strings[]
Definition: node.c:257
u32
unsigned int u32
Definition: types.h:88
foreach_ipip_input_next
#define foreach_ipip_input_next
Definition: node.c:25