FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
mpls.h File Reference
+ Include dependency graph for mpls.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mpls_main_t
 

Macros

#define mpls_error(n, s)   MPLS_ERROR_##n,
 

Typedefs

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. More...
 

Enumerations

enum  mpls_error_t { MPLS_N_ERROR }
 

Functions

clib_error_tmpls_feature_init (vlib_main_t *vm)
 
int mpls_sw_interface_enable_disable (mpls_main_t *mm, u32 sw_if_index, u8 is_enable, u8 is_api)
 
u8 mpls_sw_interface_is_enabled (u32 sw_if_index)
 
int mpls_fib_reset_labels (u32 fib_id)
 
int mpls_dest_cmp (void *a1, void *a2)
 
int mpls_fib_index_cmp (void *a1, void *a2)
 
int mpls_label_cmp (void *a1, void *a2)
 
void mpls_table_create (u32 table_id, u8 is_api, const u8 *name)
 
void mpls_table_delete (u32 table_id, u8 is_api)
 

Variables

mpls_main_t mpls_main
 
format_function_t format_mpls_eos_bit
 
format_function_t format_mpls_unicast_header_net_byte_order
 
format_function_t format_mpls_unicast_label
 
format_function_t format_mpls_header
 
vlib_node_registration_t mpls_input_node
 (constructor) VLIB_REGISTER_NODE (mpls_input_node) More...
 
vlib_node_registration_t mpls_output_node
 (constructor) VLIB_REGISTER_NODE (mpls_output_node) More...
 
vlib_node_registration_t mpls_midchain_node
 (constructor) VLIB_REGISTER_NODE (mpls_midchain_node) More...
 
unformat_function_t unformat_mpls_label_net_byte_order
 
unformat_function_t unformat_mpls_unicast_label
 
unformat_function_t unformat_mpls_header
 
unformat_function_t unformat_pg_mpls_header
 

Macro Definition Documentation

◆ mpls_error

#define mpls_error (   n,
 
)    MPLS_ERROR_##n,

Definition at line 28 of file mpls.h.

Typedef Documentation

◆ mpls_interface_state_change_callback_t

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 38 of file mpls.h.

Enumeration Type Documentation

◆ mpls_error_t

Enumerator
MPLS_N_ERROR 

Definition at line 26 of file mpls.h.

Function Documentation

◆ mpls_dest_cmp()

int mpls_dest_cmp ( void *  a1,
void *  a2 
)

Definition at line 186 of file mpls.c.

◆ mpls_feature_init()

clib_error_t* mpls_feature_init ( vlib_main_t vm)

◆ mpls_fib_index_cmp()

int mpls_fib_index_cmp ( void *  a1,
void *  a2 
)

Definition at line 195 of file mpls.c.

◆ mpls_fib_reset_labels()

int mpls_fib_reset_labels ( u32  fib_id)

Definition at line 447 of file mpls.c.

◆ mpls_label_cmp()

int mpls_label_cmp ( void *  a1,
void *  a2 
)

Definition at line 204 of file mpls.c.

◆ mpls_sw_interface_enable_disable()

int mpls_sw_interface_enable_disable ( mpls_main_t mm,
u32  sw_if_index,
u8  is_enable,
u8  is_api 
)

Definition at line 39 of file interface.c.

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

◆ mpls_sw_interface_is_enabled()

u8 mpls_sw_interface_is_enabled ( u32  sw_if_index)

Definition at line 28 of file interface.c.

◆ mpls_table_create()

void mpls_table_create ( u32  table_id,
u8  is_api,
const u8 name 
)

Definition at line 234 of file mpls_api.c.

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

◆ mpls_table_delete()

void mpls_table_delete ( u32  table_id,
u8  is_api 
)

Definition at line 62 of file mpls_api.c.

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

Variable Documentation

◆ format_mpls_eos_bit

format_function_t format_mpls_eos_bit

Definition at line 69 of file mpls.h.

◆ format_mpls_header

format_function_t format_mpls_header

Definition at line 72 of file mpls.h.

◆ format_mpls_unicast_header_net_byte_order

format_function_t format_mpls_unicast_header_net_byte_order

Definition at line 70 of file mpls.h.

◆ format_mpls_unicast_label

format_function_t format_mpls_unicast_label

Definition at line 71 of file mpls.h.

◆ mpls_input_node

vlib_node_registration_t mpls_input_node

(constructor) VLIB_REGISTER_NODE (mpls_input_node)

Definition at line 245 of file mpls_input.c.

◆ mpls_main

mpls_main_t mpls_main

Definition at line 25 of file mpls.c.

◆ mpls_midchain_node

vlib_node_registration_t mpls_midchain_node

(constructor) VLIB_REGISTER_NODE (mpls_midchain_node)

Definition at line 389 of file mpls_output.c.

◆ mpls_output_node

vlib_node_registration_t mpls_output_node

(constructor) VLIB_REGISTER_NODE (mpls_output_node)

Definition at line 365 of file mpls_output.c.

◆ unformat_mpls_header

unformat_function_t unformat_mpls_header

Definition at line 84 of file mpls.h.

◆ unformat_mpls_label_net_byte_order

unformat_function_t unformat_mpls_label_net_byte_order

Definition at line 80 of file mpls.h.

◆ unformat_mpls_unicast_label

unformat_function_t unformat_mpls_unicast_label

Definition at line 81 of file mpls.h.

◆ unformat_pg_mpls_header

unformat_function_t unformat_pg_mpls_header

Definition at line 85 of file mpls.h.