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

Go to the source code of this file.

Data Structures

struct  ppp_input_trace_t
 
struct  ppp_input_runtime_t
 

Macros

#define foreach_ppp_input_next
 
#define ppp_error(n, s)   s,
 

Enumerations

enum  ppp_input_next_t { PPP_INPUT_N_NEXT }
 

Functions

static u8format_ppp_input_trace (u8 *s, va_list *va)
 
static uword ppp_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static clib_error_tppp_input_runtime_init (vlib_main_t *vm)
 
static void ppp_setup_node (vlib_main_t *vm, u32 node_index)
 
static clib_error_tppp_input_init (vlib_main_t *vm)
 
 VLIB_WORKER_INIT_FUNCTION (ppp_input_runtime_init)
 
void ppp_register_input_protocol (vlib_main_t *vm, ppp_protocol_t protocol, u32 node_index)
 

Variables

static char * ppp_error_strings []
 
vlib_node_registration_t ppp_input_node
 (constructor) VLIB_REGISTER_NODE (ppp_input_node) More...
 

Macro Definition Documentation

◆ foreach_ppp_input_next

#define foreach_ppp_input_next
Value:
_ (PUNT, "error-punt") \
_ (DROP, "error-drop")

Definition at line 45 of file node.c.

◆ ppp_error

#define ppp_error (   n,
 
)    s,

Enumeration Type Documentation

◆ ppp_input_next_t

Enumerator
PPP_INPUT_N_NEXT 

Definition at line 49 of file node.c.

Function Documentation

◆ format_ppp_input_trace()

static u8* format_ppp_input_trace ( u8 s,
va_list *  va 
)
static

Definition at line 63 of file node.c.

◆ ppp_input()

static uword ppp_input ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 84 of file node.c.

+ Here is the call graph for this function:

◆ ppp_input_init()

static clib_error_t* ppp_input_init ( vlib_main_t vm)
static

Definition at line 326 of file node.c.

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

◆ ppp_input_runtime_init()

static clib_error_t* ppp_input_runtime_init ( vlib_main_t vm)
static

Definition at line 294 of file node.c.

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

◆ ppp_register_input_protocol()

void ppp_register_input_protocol ( vlib_main_t vm,
ppp_protocol_t  protocol,
u32  node_index 
)

Definition at line 345 of file node.c.

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

◆ ppp_setup_node()

static void ppp_setup_node ( vlib_main_t vm,
u32  node_index 
)
static

Definition at line 315 of file node.c.

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

◆ VLIB_WORKER_INIT_FUNCTION()

VLIB_WORKER_INIT_FUNCTION ( ppp_input_runtime_init  )

Variable Documentation

◆ ppp_error_strings

char* ppp_error_strings[]
static
Initial value:
= {
#define ppp_error(n,s)
}

Definition at line 262 of file node.c.

◆ ppp_input_node

vlib_node_registration_t ppp_input_node
Initial value:
= {
.function = ppp_input,
.name = "ppp-input",
.vector_size = sizeof (u32),
.runtime_data_bytes = sizeof (ppp_input_runtime_t),
.n_errors = PPP_N_ERROR,
.error_strings = ppp_error_strings,
.n_next_nodes = PPP_INPUT_N_NEXT,
.next_nodes = {
#define _(s,n)
},
.format_trace = format_ppp_input_trace,
.unformat_buffer = unformat_ppp_header,
}

(constructor) VLIB_REGISTER_NODE (ppp_input_node)

Definition at line 269 of file node.c.

ppp_error_strings
static char * ppp_error_strings[]
Definition: node.c:262
PPP_N_ERROR
@ PPP_N_ERROR
Definition: ppp.h:53
DROP
DROP
Definition: error.def:41
ppp_input
static uword ppp_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: node.c:84
format_ppp_header_with_length
format_function_t format_ppp_header_with_length
Definition: ppp.h:97
ppp_input_runtime_t
Definition: node.c:74
format_ppp_input_trace
static u8 * format_ppp_input_trace(u8 *s, va_list *va)
Definition: node.c:63
unformat_ppp_header
unformat_function_t unformat_ppp_header
Definition: ppp.h:105
PPP_INPUT_N_NEXT
@ PPP_INPUT_N_NEXT
Definition: node.c:54
foreach_ppp_input_next
#define foreach_ppp_input_next
Definition: node.c:45
u32
unsigned int u32
Definition: types.h:88