Go to the source code of this file.
#define foreach_mpls_input_next |
Value:
Definition at line 121 of file mpls.h.
#define foreach_mpls_lookup_next |
Value:_(IP4_INPUT, "ip4-input") \
_(L2_OUTPUT, "l2-output")
Definition at line 132 of file mpls.h.
#define foreach_mpls_output_next _(DROP, "error-drop") |
#define mpls_error |
( |
|
n, |
|
|
|
s |
|
) |
| MPLS_ERROR_##n, |
#define MPLS_FIB_DEFAULT_TABLE_ID 0 |
#define MPLS_FIB_KEY_SIZE 21 |
Type exposure is to allow the DP fast/inlined access.
Definition at line 38 of file mpls.h.
typedef void(* mpls_interface_state_change_callback_t) (u32 sw_if_index, u32 is_enable) |
Definition of a callback for receiving MPLS interface state change notifications.
Definition at line 60 of file mpls.h.
Enumerator |
---|
mpls_error |
|
mpls_error |
|
Definition at line 26 of file mpls.h.
Enumerator |
---|
MPLS_INPUT_N_NEXT |
|
Definition at line 125 of file mpls.h.
Enumerator |
---|
MPLS_LOOKUP_N_NEXT |
|
Definition at line 138 of file mpls.h.
Enumerator |
---|
MPLS_OUTPUT_N_NEXT |
|
Definition at line 148 of file mpls.h.
int mpls_dest_cmp |
( |
void * |
a1, |
|
|
void * |
a2 |
|
) |
| |
int mpls_fib_index_cmp |
( |
void * |
a1, |
|
|
void * |
a2 |
|
) |
| |
int mpls_fib_reset_labels |
( |
u32 |
fib_id | ) |
|
int mpls_label_cmp |
( |
void * |
a1, |
|
|
void * |
a2 |
|
) |
| |
void mpls_sw_interface_enable_disable |
( |
mpls_main_t * |
mm, |
|
|
u32 |
sw_if_index, |
|
|
u8 |
is_enable |
|
) |
| |
u8 mpls_sw_interface_is_enabled |
( |
u32 |
sw_if_index | ) |
|
Initial value:= {
.name = "mpls-input",
.vector_size =
sizeof (
u32),
.n_errors = MPLS_N_ERROR,
.next_nodes = {
#define _(s,n)
},
}
static uword mpls_input(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
#define foreach_mpls_input_next
format_function_t format_mpls_unicast_header_net_byte_order
static u8 * format_mpls_input_trace(u8 *s, va_list *args)
static char * mpls_error_strings[]
(constructor) VLIB_REGISTER_NODE (mpls_input_node)
Definition at line 247 of file node.c.
(constructor) VLIB_REGISTER_NODE (mpls_midchain_node)
Definition at line 337 of file mpls_output.c.
(constructor) VLIB_REGISTER_NODE (mpls_output_node)
Definition at line 309 of file mpls_output.c.