FD.io VPP  v16.06
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_gre_tx_trace (u8 *s, va_list *args)
 
u8format_mpls_eth_tx_trace (u8 *s, va_list *args)
 
u8format_mpls_eth_header_with_length (u8 *s, va_list *args)
 
u8format_mpls_gre_header_with_length (u8 *s, va_list *args)
 
u8format_mpls_gre_header (u8 *s, va_list *args)
 
uword unformat_mpls_gre_header (unformat_input_t *input, va_list *args)
 
uword unformat_mpls_label_net_byte_order (unformat_input_t *input, va_list *args)
 
mpls_encap_tmpls_encap_by_fib_and_dest (mpls_main_t *mm, u32 rx_fib, u32 dst_address)
 
int vnet_mpls_add_del_encap (ip4_address_t *dest, u32 fib_id, u32 *labels_host_byte_order, u32 policy_tunnel_index, int no_dst_hash, u32 *indexp, int is_add)
 
static clib_error_tmpls_add_encap_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
u8format_mpls_unicast_header_host_byte_order (u8 *s, va_list *args)
 
u8format_mpls_unicast_header_net_byte_order (u8 *s, va_list *args)
 
static clib_error_tmpls_del_encap_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int vnet_mpls_add_del_decap (u32 rx_fib_id, u32 tx_fib_id, u32 label_host_byte_order, int s_bit, int next_index, int is_add)
 
uword unformat_mpls_gre_input_next (unformat_input_t *input, va_list *args)
 
static clib_error_tmpls_add_decap_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tmpls_del_decap_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static int mpls_dest_cmp (void *a1, void *a2)
 
static int mpls_fib_index_cmp (void *a1, void *a2)
 
static int mpls_label_cmp (void *a1, void *a2)
 
static clib_error_tshow_mpls_fib_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
int mpls_fib_reset_labels (u32 fib_id)
 
static clib_error_tmpls_init (vlib_main_t *vm)
 
mpls_main_tmpls_get_main (vlib_main_t *vm)
 

Variables

mpls_main_t mpls_main
 
vlib_cli_command_t mpls_add_encap_command
 (constructor) VLIB_CLI_COMMAND (mpls_add_encap_command) More...
 
vlib_cli_command_t mpls_del_encap_command
 (constructor) VLIB_CLI_COMMAND (mpls_del_encap_command) More...
 
vlib_cli_command_t mpls_add_decap_command
 (constructor) VLIB_CLI_COMMAND (mpls_add_decap_command) More...
 
vlib_cli_command_t mpls_del_decap_command
 (constructor) VLIB_CLI_COMMAND (mpls_del_decap_command) More...
 
vlib_cli_command_t show_mpls_fib_command
 (constructor) VLIB_CLI_COMMAND (show_mpls_fib_command) More...
 

Function Documentation

u8* format_mpls_eth_header_with_length ( u8 s,
va_list *  args 
)

Definition at line 65 of file mpls.c.

+ Here is the call graph for this function:

u8* format_mpls_eth_tx_trace ( u8 s,
va_list *  args 
)

Definition at line 44 of file mpls.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_mpls_gre_header ( u8 s,
va_list *  args 
)

Definition at line 101 of file mpls.c.

+ Here is the call graph for this function:

u8* format_mpls_gre_header_with_length ( u8 s,
va_list *  args 
)

Definition at line 83 of file mpls.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_mpls_gre_tx_trace ( u8 s,
va_list *  args 
)

Definition at line 23 of file mpls.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_mpls_unicast_header_host_byte_order ( u8 s,
va_list *  args 
)

Definition at line 305 of file mpls.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_mpls_unicast_header_net_byte_order ( u8 s,
va_list *  args 
)

Definition at line 318 of file mpls.c.

+ Here is the call graph for this function:

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

Definition at line 452 of file mpls.c.

+ Here is the call graph for this function:

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

Definition at line 239 of file mpls.c.

+ Here is the call graph for this function:

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

Definition at line 522 of file mpls.c.

+ Here is the call graph for this function:

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

Definition at line 330 of file mpls.c.

+ Here is the call graph for this function:

static int mpls_dest_cmp ( void a1,
void a2 
)
static

Definition at line 589 of file mpls.c.

+ Here is the caller graph for this function:

mpls_encap_t* mpls_encap_by_fib_and_dest ( mpls_main_t mm,
u32  rx_fib,
u32  dst_address 
)

Definition at line 156 of file mpls.c.

+ Here is the caller graph for this function:

static int mpls_fib_index_cmp ( void a1,
void a2 
)
static

Definition at line 598 of file mpls.c.

+ Here is the caller graph for this function:

int mpls_fib_reset_labels ( u32  fib_id)

Definition at line 711 of file mpls.c.

+ Here is the caller graph for this function:

mpls_main_t* mpls_get_main ( vlib_main_t vm)

Definition at line 790 of file mpls.c.

+ Here is the call graph for this function:

static clib_error_t* mpls_init ( vlib_main_t vm)
static

Definition at line 770 of file mpls.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int mpls_label_cmp ( void a1,
void a2 
)
static

Definition at line 607 of file mpls.c.

+ Here is the caller graph for this function:

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

Definition at line 616 of file mpls.c.

+ Here is the call graph for this function:

uword unformat_mpls_gre_header ( unformat_input_t input,
va_list *  args 
)

Definition at line 108 of file mpls.c.

+ Here is the call graph for this function:

uword unformat_mpls_gre_input_next ( unformat_input_t input,
va_list *  args 
)

Definition at line 433 of file mpls.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword unformat_mpls_label_net_byte_order ( unformat_input_t input,
va_list *  args 
)

Definition at line 140 of file mpls.c.

+ Here is the call graph for this function:

int vnet_mpls_add_del_decap ( u32  rx_fib_id,
u32  tx_fib_id,
u32  label_host_byte_order,
int  s_bit,
int  next_index,
int  is_add 
)

Definition at line 369 of file mpls.c.

+ Here is the caller graph for this function:

int vnet_mpls_add_del_encap ( ip4_address_t dest,
u32  fib_id,
u32 labels_host_byte_order,
u32  policy_tunnel_index,
int  no_dst_hash,
u32 indexp,
int  is_add 
)

Definition at line 172 of file mpls.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

vlib_cli_command_t mpls_add_decap_command
Initial value:
= {
.path = "mpls decap add",
.short_help =
"mpls decap add fib <id> label <nn> [s-bit-clear] [next-index <nn>]",
}
static clib_error_t * mpls_add_decap_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: mpls.c:452

(constructor) VLIB_CLI_COMMAND (mpls_add_decap_command)

Definition at line 514 of file mpls.c.

vlib_cli_command_t mpls_add_encap_command
Initial value:
= {
.path = "mpls encap add",
.short_help =
"mpls encap add label <label> ... fib <id> dest <ip4-address>",
}
static clib_error_t * mpls_add_encap_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: mpls.c:239

(constructor) VLIB_CLI_COMMAND (mpls_add_encap_command)

Definition at line 298 of file mpls.c.

vlib_cli_command_t mpls_del_decap_command
Initial value:
= {
.path = "mpls decap delete",
.short_help = "mpls decap delete label <label> rx-fib <id> [s-bit-clear]",
}
static clib_error_t * mpls_del_decap_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: mpls.c:522

(constructor) VLIB_CLI_COMMAND (mpls_del_decap_command)

Definition at line 574 of file mpls.c.

vlib_cli_command_t mpls_del_encap_command
Initial value:
= {
.path = "mpls encap delete",
.short_help = "mpls encap delete fib <id> dest <ip4-address>",
}
static clib_error_t * mpls_del_encap_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: mpls.c:330

(constructor) VLIB_CLI_COMMAND (mpls_del_encap_command)

Definition at line 363 of file mpls.c.

mpls_main_t mpls_main

Definition at line 21 of file mpls.c.

vlib_cli_command_t show_mpls_fib_command
Initial value:
= {
.path = "show mpls fib",
.short_help = "show mpls fib",
}
static clib_error_t * show_mpls_fib_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: mpls.c:616

(constructor) VLIB_CLI_COMMAND (show_mpls_fib_command)

Definition at line 705 of file mpls.c.