FD.io VPP  v16.09
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 41 of file policy_encap.c.

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

Definition at line 51 of file policy_encap.c.

Enumeration Type Documentation

Enumerator
MPLS_POLICY_ENCAP_N_ERROR 

Definition at line 54 of file policy_encap.c.

Enumerator
MPLS_POLICY_ENCAP_N_NEXT 

Definition at line 44 of file policy_encap.c.

Function Documentation

u8* format_mpls_policy_encap_trace ( u8 s,
va_list *  args 
)

Definition at line 27 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 69 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 159 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:51

Definition at line 61 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:27
#define foreach_mpls_policy_encap_next
Definition: policy_encap.c:41
static uword mpls_policy_encap(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
Definition: policy_encap.c:69
unsigned int u32
Definition: types.h:88
static char * mpls_policy_encap_error_strings[]
Definition: policy_encap.c:61

(constructor) VLIB_REGISTER_NODE (mpls_policy_encap_node)

Definition at line 39 of file policy_encap.c.