FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
mpls.c File Reference
+ Include dependency graph for mpls.c:

Go to the source code of this file.

Data Structures

struct  show_mpls_fib_t
 

Functions

u8format_mpls_unicast_label (u8 *s, va_list *args)
 
uword unformat_mpls_unicast_label (unformat_input_t *input, va_list *args)
 
u8format_mpls_eos_bit (u8 *s, va_list *args)
 
u8format_mpls_header (u8 *s, va_list *args)
 
uword unformat_mpls_header (unformat_input_t *input, va_list *args)
 
uword unformat_mpls_label_net_byte_order (unformat_input_t *input, va_list *args)
 
u8format_mpls_unicast_header_host_byte_order (u8 *s, va_list *args)
 
u8format_mpls_unicast_header_net_byte_order (u8 *s, va_list *args)
 
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)
 
static clib_error_tvnet_mpls_local_label (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
clib_error_tvnet_mpls_table_cmd (vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmdo)
 
int mpls_fib_reset_labels (u32 fib_id)
 
static clib_error_tmpls_init (vlib_main_t *vm)
 

Variables

static const char * mpls_eos_bit_names [] = MPLS_EOS_BITS
 
mpls_main_t mpls_main
 
static vlib_cli_command_t mpls_local_label_command
 (constructor) VLIB_CLI_COMMAND (mpls_local_label_command) More...
 
static vlib_cli_command_t mpls_table_command
 (constructor) VLIB_CLI_COMMAND (mpls_table_command) More...
 

Function Documentation

◆ format_mpls_eos_bit()

u8* format_mpls_eos_bit ( u8 s,
va_list *  args 
)

Definition at line 88 of file mpls.c.

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

◆ format_mpls_header()

u8* format_mpls_header ( u8 s,
va_list *  args 
)

Definition at line 99 of file mpls.c.

+ Here is the call graph for this function:

◆ format_mpls_unicast_header_host_byte_order()

u8* format_mpls_unicast_header_host_byte_order ( u8 s,
va_list *  args 
)

Definition at line 153 of file mpls.c.

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

◆ format_mpls_unicast_header_net_byte_order()

u8* format_mpls_unicast_header_net_byte_order ( u8 s,
va_list *  args 
)

Definition at line 166 of file mpls.c.

+ Here is the call graph for this function:

◆ format_mpls_unicast_label()

u8* format_mpls_unicast_label ( u8 s,
va_list *  args 
)

Definition at line 27 of file mpls.c.

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

◆ mpls_dest_cmp()

int mpls_dest_cmp ( void *  a1,
void *  a2 
)

Definition at line 186 of file mpls.c.

◆ 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_init()

static clib_error_t* mpls_init ( vlib_main_t vm)
static

Definition at line 454 of file mpls.c.

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

◆ mpls_label_cmp()

int mpls_label_cmp ( void *  a1,
void *  a2 
)

Definition at line 204 of file mpls.c.

◆ unformat_mpls_header()

uword unformat_mpls_header ( unformat_input_t input,
va_list *  args 
)

Definition at line 113 of file mpls.c.

+ Here is the call graph for this function:

◆ unformat_mpls_label_net_byte_order()

uword unformat_mpls_label_net_byte_order ( unformat_input_t input,
va_list *  args 
)

Definition at line 138 of file mpls.c.

+ Here is the call graph for this function:

◆ unformat_mpls_unicast_label()

uword unformat_mpls_unicast_label ( unformat_input_t input,
va_list *  args 
)

Definition at line 60 of file mpls.c.

+ Here is the call graph for this function:

◆ vnet_mpls_local_label()

static clib_error_t* vnet_mpls_local_label ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 213 of file mpls.c.

+ Here is the call graph for this function:

◆ vnet_mpls_table_cmd()

clib_error_t* vnet_mpls_table_cmd ( vlib_main_t vm,
unformat_input_t main_input,
vlib_cli_command_t cmdo 
)

Definition at line 377 of file mpls.c.

+ Here is the call graph for this function:

Variable Documentation

◆ mpls_eos_bit_names

const char* mpls_eos_bit_names[] = MPLS_EOS_BITS
static

Definition at line 23 of file mpls.c.

◆ mpls_local_label_command

vlib_cli_command_t mpls_local_label_command
static
Initial value:
= {
.path = "mpls local-label",
.function = vnet_mpls_local_label,
.short_help = "mpls local-label [add|del] <label-value> [eos|non-eos] via [next-hop-address] [next-hop-interface] [next-hop-table <value>] [weight <value>] [preference <value>] [udp-encap-id <value>] [ip4-lookup-in-table <value>] [ip6-lookup-in-table <value>] [mpls-lookup-in-table <value>] [resolve-via-host] [resolve-via-attached] [rx-ip4 <interface>] [out-labels <value value value>]",
}
static clib_error_t * vnet_mpls_local_label(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: mpls.c:213

(constructor) VLIB_CLI_COMMAND (mpls_local_label_command)

Definition at line 370 of file mpls.c.

◆ mpls_main

mpls_main_t mpls_main

Definition at line 25 of file mpls.c.

◆ mpls_table_command

vlib_cli_command_t mpls_table_command
static
Initial value:
= {
.path = "mpls table",
.short_help = "mpls table [add|del] <table-id>",
.function = vnet_mpls_table_cmd,
.is_mp_safe = 1,
}
clib_error_t * vnet_mpls_table_cmd(vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmdo)
Definition: mpls.c:377

(constructor) VLIB_CLI_COMMAND (mpls_table_command)

Definition at line 439 of file mpls.c.