FD.io VPP  v16.12-rc0-308-g931be3a
Vector Packet Processing
policy_encap.c File Reference
+ Include dependency graph for policy_encap.c:

Go to the source code of this file.

Data Structures

struct  mpls_policy_encap_trace_t
 

Macros

#define foreach_mpls_policy_encap_next   _(DROP, "error-drop")
 
#define foreach_mpls_policy_error   _(PKTS_ENCAP, "mpls policy tunnel packets encapsulated")
 

Enumerations

enum  mpls_policy_encap_next_t { MPLS_POLICY_ENCAP_N_NEXT }
 
enum  mpls_policy_encap_error_t { MPLS_POLICY_ENCAP_N_ERROR }
 

Functions

u8format_mpls_policy_encap_trace (u8 *s, va_list *args)
 
static uword mpls_policy_encap (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static clib_error_tmpls_policy_encap_init (vlib_main_t *vm)
 

Variables

vlib_node_registration_t mpls_policy_encap_node
 (constructor) VLIB_REGISTER_NODE (mpls_policy_encap_node) More...
 
static char * mpls_policy_encap_error_strings []
 

Macro Definition Documentation

#define foreach_mpls_policy_encap_next   _(DROP, "error-drop")

Definition at line 42 of file policy_encap.c.

#define foreach_mpls_policy_error   _(PKTS_ENCAP, "mpls policy tunnel packets encapsulated")

Definition at line 52 of file policy_encap.c.

Enumeration Type Documentation

Enumerator
MPLS_POLICY_ENCAP_N_ERROR 

Definition at line 55 of file policy_encap.c.

Enumerator
MPLS_POLICY_ENCAP_N_NEXT 

Definition at line 45 of file policy_encap.c.

Function Documentation

u8* format_mpls_policy_encap_trace ( u8 s,
va_list *  args 
)

Definition at line 28 of file policy_encap.c.

+ Here is the call graph for this function:

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

Definition at line 70 of file policy_encap.c.

+ Here is the call graph for this function:

static clib_error_t* mpls_policy_encap_init ( vlib_main_t vm)
static

Definition at line 160 of file policy_encap.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char* mpls_policy_encap_error_strings[]
static
Initial value:
=
{
#define _(n,s)
}
#define foreach_mpls_policy_error
Definition: policy_encap.c:52

Definition at line 62 of file policy_encap.c.

vlib_node_registration_t mpls_policy_encap_node
Initial value:
= {
.function = mpls_policy_encap,
.name = "mpls-policy-encap",
.vector_size = sizeof (u32),
.runtime_data_bytes = 0,
.n_next_nodes = MPLS_POLICY_ENCAP_N_NEXT,
.next_nodes = {
#define _(s,n)
},
}
u8 * format_mpls_policy_encap_trace(u8 *s, va_list *args)
Definition: policy_encap.c:28
#define foreach_mpls_policy_encap_next
Definition: policy_encap.c:42
static uword mpls_policy_encap(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: policy_encap.c:70
unsigned int u32
Definition: types.h:88
static char * mpls_policy_encap_error_strings[]
Definition: policy_encap.c:62

(constructor) VLIB_REGISTER_NODE (mpls_policy_encap_node)

Definition at line 40 of file policy_encap.c.