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

Go to the source code of this file.

Functions

int mfib_prefix_is_cover (const mfib_prefix_t *p1, const mfib_prefix_t *p2)
 Compare two prefixes for covering relationship. More...
 
int mfib_prefix_is_host (const mfib_prefix_t *pfx)
 Return true is the prefix is a host prefix. More...
 
fib_forward_chain_type_t mfib_forw_chain_type_from_dpo_proto (dpo_proto_t proto)
 
fib_forward_chain_type_t mfib_forw_chain_type_from_fib_proto (fib_protocol_t proto)
 
u8format_mfib_prefix (u8 *s, va_list *args)
 
u8format_mfib_entry_flags (u8 *s, va_list *args)
 
u8format_mfib_itf_flags (u8 *s, va_list *args)
 
uword unformat_mfib_itf_flags (unformat_input_t *input, va_list *args)
 
uword unformat_mfib_entry_flags (unformat_input_t *input, va_list *args)
 
clib_error_tmfib_show_route_flags (vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)
 
clib_error_tmfib_show_itf_flags (vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)
 

Variables

static const char * mfib_flag_names [] = MFIB_ENTRY_NAMES_SHORT
 String names for each flag. More...
 
static const char * mfib_flag_names_long [] = MFIB_ENTRY_NAMES_LONG
 
static const char * mfib_itf_flag_long_names [] = MFIB_ITF_NAMES_LONG
 
static const char * mfib_itf_flag_names [] = MFIB_ITF_NAMES_SHORT
 
static vlib_cli_command_t mfib_route_flags_command
 (constructor) VLIB_CLI_COMMAND (mfib_route_flags_command) More...
 
static vlib_cli_command_t mfib_itf_flags_command
 (constructor) VLIB_CLI_COMMAND (mfib_itf_flags_command) More...
 

Function Documentation

◆ format_mfib_entry_flags()

u8* format_mfib_entry_flags ( u8 s,
va_list *  args 
)

Definition at line 161 of file mfib_types.c.

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

◆ format_mfib_itf_flags()

u8* format_mfib_itf_flags ( u8 s,
va_list *  args 
)

Definition at line 181 of file mfib_types.c.

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

◆ format_mfib_prefix()

u8* format_mfib_prefix ( u8 s,
va_list *  args 
)

Definition at line 106 of file mfib_types.c.

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

◆ mfib_forw_chain_type_from_dpo_proto()

fib_forward_chain_type_t mfib_forw_chain_type_from_dpo_proto ( dpo_proto_t  proto)

Definition at line 71 of file mfib_types.c.

+ Here is the caller graph for this function:

◆ mfib_forw_chain_type_from_fib_proto()

fib_forward_chain_type_t mfib_forw_chain_type_from_fib_proto ( fib_protocol_t  proto)

Definition at line 90 of file mfib_types.c.

◆ mfib_prefix_is_cover()

int mfib_prefix_is_cover ( const mfib_prefix_t p1,
const mfib_prefix_t p2 
)

Compare two prefixes for covering relationship.

Returns
non-zero if the first prefix is a cover for the second

Definition at line 30 of file mfib_types.c.

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

◆ mfib_prefix_is_host()

int mfib_prefix_is_host ( const mfib_prefix_t pfx)

Return true is the prefix is a host prefix.

Definition at line 55 of file mfib_types.c.

+ Here is the caller graph for this function:

◆ mfib_show_itf_flags()

clib_error_t* mfib_show_itf_flags ( vlib_main_t vm,
unformat_input_t main_input,
vlib_cli_command_t cmd 
)

Definition at line 267 of file mfib_types.c.

+ Here is the call graph for this function:

◆ mfib_show_route_flags()

clib_error_t* mfib_show_route_flags ( vlib_main_t vm,
unformat_input_t main_input,
vlib_cli_command_t cmd 
)

Definition at line 238 of file mfib_types.c.

+ Here is the call graph for this function:

◆ unformat_mfib_entry_flags()

uword unformat_mfib_entry_flags ( unformat_input_t input,
va_list *  args 
)

Definition at line 218 of file mfib_types.c.

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

◆ unformat_mfib_itf_flags()

uword unformat_mfib_itf_flags ( unformat_input_t input,
va_list *  args 
)

Definition at line 198 of file mfib_types.c.

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

Variable Documentation

◆ mfib_flag_names

const char* mfib_flag_names[] = MFIB_ENTRY_NAMES_SHORT
static

String names for each flag.

Definition at line 23 of file mfib_types.c.

◆ mfib_flag_names_long

const char* mfib_flag_names_long[] = MFIB_ENTRY_NAMES_LONG
static

Definition at line 24 of file mfib_types.c.

◆ mfib_itf_flag_long_names

const char* mfib_itf_flag_long_names[] = MFIB_ITF_NAMES_LONG
static

Definition at line 26 of file mfib_types.c.

◆ mfib_itf_flag_names

const char* mfib_itf_flag_names[] = MFIB_ITF_NAMES_SHORT
static

Definition at line 27 of file mfib_types.c.

◆ mfib_itf_flags_command

vlib_cli_command_t mfib_itf_flags_command
static
Initial value:
=
{
.path = "show mfib itf flags",
.short_help = "Flags applicable to an MFIB interfaces",
.function = mfib_show_itf_flags,
.is_mp_safe = 1,
}
clib_error_t * mfib_show_itf_flags(vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)
Definition: mfib_types.c:267

(constructor) VLIB_CLI_COMMAND (mfib_itf_flags_command)

Definition at line 286 of file mfib_types.c.

◆ mfib_route_flags_command

vlib_cli_command_t mfib_route_flags_command
static
Initial value:
=
{
.path = "show mfib route flags",
.short_help = "Flags applicable to an MFIB route",
.function = mfib_show_route_flags,
.is_mp_safe = 1,
}
clib_error_t * mfib_show_route_flags(vlib_main_t *vm, unformat_input_t *main_input, vlib_cli_command_t *cmd)
Definition: mfib_types.c:238

(constructor) VLIB_CLI_COMMAND (mfib_route_flags_command)

Definition at line 257 of file mfib_types.c.