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  mactime_trace_t
 

Macros

#define foreach_mactime_error
 

Enumerations

enum  mactime_error_t { MACTIME_N_ERROR }
 
enum  mactime_next_t { MACTIME_NEXT_DROP, MACTIME_NEXT_ETHERNET_INPUT, MACTIME_N_NEXT }
 

Functions

static u8format_mactime_trace (u8 *s, va_list *args)
 
static uword mactime_node_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int is_tx)
 
static uword mactime_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 
static uword mactime_tx_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
 

Variables

vlib_node_registration_t mactime_node
 (constructor) VLIB_REGISTER_NODE (mactime_node) More...
 
vlib_node_registration_t mactime_tx_node
 (constructor) VLIB_REGISTER_NODE (mactime_tx_node) More...
 
static char * mactime_error_strings []
 

Macro Definition Documentation

◆ foreach_mactime_error

#define foreach_mactime_error
Value:
_(OK, "Permitted packets") \
_(STATIC_DROP, "Static drop packets") \
_(RANGE_DROP, "Range drop packets") \
_(QUOTA_DROP, "Data quota drop packets") \
_(DROP_10001, "Dropped UDP DST-port 10001")

Definition at line 34 of file node.c.

Enumeration Type Documentation

◆ mactime_error_t

Enumerator
MACTIME_N_ERROR 

Definition at line 41 of file node.c.

◆ mactime_next_t

Enumerator
MACTIME_NEXT_DROP 
MACTIME_NEXT_ETHERNET_INPUT 
MACTIME_N_NEXT 

Definition at line 55 of file node.c.

Function Documentation

◆ format_mactime_trace()

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

Definition at line 64 of file node.c.

+ Here is the call graph for this function:

◆ mactime_node_fn()

static uword mactime_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 346 of file node.c.

+ Here is the call graph for this function:

◆ mactime_node_inline()

static uword mactime_node_inline ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame,
int  is_tx 
)
static

Definition at line 78 of file node.c.

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

◆ mactime_tx_node_fn()

static uword mactime_tx_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t frame 
)
static

Definition at line 376 of file node.c.

+ Here is the call graph for this function:

Variable Documentation

◆ mactime_error_strings

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

Definition at line 49 of file node.c.

◆ mactime_node

Initial value:
=
{
.function = mactime_node_fn,
.name = "mactime",
.vector_size = sizeof (u32),
.format_trace = format_mactime_trace,
.error_strings = mactime_error_strings,
.n_next_nodes = MACTIME_N_NEXT,
.next_nodes =
{
[MACTIME_NEXT_ETHERNET_INPUT] = "ethernet-input",
[MACTIME_NEXT_DROP] = "error-drop",
},
}

(constructor) VLIB_REGISTER_NODE (mactime_node)

Definition at line 31 of file node.c.

◆ mactime_tx_node

vlib_node_registration_t mactime_tx_node
Initial value:
=
{
.function = mactime_tx_node_fn,
.name = "mactime-tx",
.vector_size = sizeof (u32),
.format_trace = format_mactime_trace,
.error_strings = mactime_error_strings,
.n_next_nodes = MACTIME_N_NEXT,
.next_nodes =
{
[MACTIME_NEXT_DROP] = "error-drop",
[MACTIME_NEXT_ETHERNET_INPUT] = "ethernet-input",
},
}

(constructor) VLIB_REGISTER_NODE (mactime_tx_node)

Definition at line 32 of file node.c.

VLIB_NODE_TYPE_INTERNAL
@ VLIB_NODE_TYPE_INTERNAL
Definition: node.h:72
format_mactime_trace
static u8 * format_mactime_trace(u8 *s, va_list *args)
Definition: node.c:64
MACTIME_NEXT_ETHERNET_INPUT
@ MACTIME_NEXT_ETHERNET_INPUT
Definition: node.c:58
ARRAY_LEN
#define ARRAY_LEN(x)
Definition: clib.h:70
MACTIME_N_NEXT
@ MACTIME_N_NEXT
Definition: node.c:59
mactime_error_strings
static char * mactime_error_strings[]
Definition: node.c:49
mactime_node_fn
static uword mactime_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:346
MACTIME_NEXT_DROP
@ MACTIME_NEXT_DROP
Definition: node.c:57
mactime_tx_node_fn
static uword mactime_tx_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:376
foreach_mactime_error
#define foreach_mactime_error
Definition: node.c:34
u32
unsigned int u32
Definition: types.h:88
type
vl_api_fib_path_type_t type
Definition: fib_types.api:123