FD.io VPP  v18.07-34-g55fbdb9
Vector Packet Processing
fib_types.c File Reference
+ Include dependency graph for fib_types.c:

Go to the source code of this file.

Functions

u8format_fib_protocol (u8 *s, va_list *ap)
 
u8format_vnet_link (u8 *s, va_list *ap)
 
u8format_fib_forw_chain_type (u8 *s, va_list *args)
 
u8format_fib_mpls_lsp_mode (u8 *s, va_list *ap)
 Format an LSP mode type. More...
 
u8format_fib_mpls_label (u8 *s, va_list *ap)
 Format an MPLS label. More...
 
void fib_prefix_from_ip46_addr (const ip46_address_t *addr, fib_prefix_t *pfx)
 Host prefix from ip. More...
 
void fib_prefix_from_mpls_label (mpls_label_t label, mpls_eos_bit_t eos, fib_prefix_t *pfx)
 Big train switch; FIB debugs on or off. More...
 
int fib_prefix_cmp (const fib_prefix_t *p1, const fib_prefix_t *p2)
 Compare two prefixes for equality. More...
 
int fib_prefix_is_cover (const fib_prefix_t *p1, const fib_prefix_t *p2)
 Compare two prefixes for covering relationship. More...
 
int fib_prefix_is_host (const fib_prefix_t *prefix)
 Return true is the prefix is a host prefix. More...
 
u8format_fib_prefix (u8 *s, va_list *args)
 
int fib_route_path_cmp (const fib_route_path_t *rpath1, const fib_route_path_t *rpath2)
 
dpo_proto_t fib_proto_to_dpo (fib_protocol_t fib_proto)
 
fib_protocol_t dpo_proto_to_fib (dpo_proto_t dpo_proto)
 
vnet_link_t fib_proto_to_link (fib_protocol_t proto)
 Convert from a protocol to a link type. More...
 
fib_forward_chain_type_t fib_forw_chain_type_from_dpo_proto (dpo_proto_t proto)
 Convert from a payload-protocol to a chain type. More...
 
vnet_link_t fib_forw_chain_type_to_link_type (fib_forward_chain_type_t fct)
 Convert from a chain type to the adjacency's link type. More...
 
fib_forward_chain_type_t fib_forw_chain_type_from_link_type (vnet_link_t link_type)
 Convert from a adjacency's link type to chain type. More...
 
dpo_proto_t fib_forw_chain_type_to_dpo_proto (fib_forward_chain_type_t fct)
 Convert from a chain type to the DPO proto it will install. More...
 
uword unformat_fib_route_path (unformat_input_t *input, va_list *args)
 Unformat a fib_route_path_t from CLI input. More...
 

Variables

static const char * fib_protocol_names [] = FIB_PROTOCOLS
 
static const char * vnet_link_names [] = VNET_LINKS
 
static const char * fib_forw_chain_names [] = FIB_FORW_CHAINS
 
static const char * fib_mpls_lsp_mode_names [] = FIB_MPLS_LSP_MODES
 

Function Documentation

fib_protocol_t dpo_proto_to_fib ( dpo_proto_t  dpo_proto)

Definition at line 253 of file fib_types.c.

+ Here is the caller graph for this function:

fib_forward_chain_type_t fib_forw_chain_type_from_dpo_proto ( dpo_proto_t  proto)

Convert from a payload-protocol to a chain type.

Definition at line 287 of file fib_types.c.

+ Here is the caller graph for this function:

fib_forward_chain_type_t fib_forw_chain_type_from_link_type ( vnet_link_t  link_type)

Convert from a adjacency's link type to chain type.

Definition at line 337 of file fib_types.c.

+ Here is the caller graph for this function:

dpo_proto_t fib_forw_chain_type_to_dpo_proto ( fib_forward_chain_type_t  fct)

Convert from a chain type to the DPO proto it will install.

Definition at line 360 of file fib_types.c.

+ Here is the caller graph for this function:

vnet_link_t fib_forw_chain_type_to_link_type ( fib_forward_chain_type_t  fct)

Convert from a chain type to the adjacency's link type.

Definition at line 309 of file fib_types.c.

+ Here is the caller graph for this function:

int fib_prefix_cmp ( const fib_prefix_t p1,
const fib_prefix_t p2 
)

Compare two prefixes for equality.

Definition at line 105 of file fib_types.c.

+ Here is the caller graph for this function:

void fib_prefix_from_ip46_addr ( const ip46_address_t *  addr,
fib_prefix_t pfx 
)

Host prefix from ip.

Definition at line 80 of file fib_types.c.

+ Here is the caller graph for this function:

void fib_prefix_from_mpls_label ( mpls_label_t  label,
mpls_eos_bit_t  eos,
fib_prefix_t pfx 
)

Big train switch; FIB debugs on or off.

Definition at line 94 of file fib_types.c.

+ Here is the caller graph for this function:

int fib_prefix_is_cover ( const fib_prefix_t p1,
const fib_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 140 of file fib_types.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int fib_prefix_is_host ( const fib_prefix_t prefix)

Return true is the prefix is a host prefix.

Definition at line 162 of file fib_types.c.

+ Here is the caller graph for this function:

dpo_proto_t fib_proto_to_dpo ( fib_protocol_t  fib_proto)

Definition at line 237 of file fib_types.c.

+ Here is the caller graph for this function:

vnet_link_t fib_proto_to_link ( fib_protocol_t  proto)

Convert from a protocol to a link type.

Definition at line 271 of file fib_types.c.

+ Here is the caller graph for this function:

int fib_route_path_cmp ( const fib_route_path_t rpath1,
const fib_route_path_t rpath2 
)

Definition at line 214 of file fib_types.c.

+ Here is the caller graph for this function:

u8* format_fib_forw_chain_type ( u8 s,
va_list *  args 
)

Definition at line 48 of file fib_types.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_fib_mpls_label ( u8 s,
va_list *  ap 
)

Format an MPLS label.

Definition at line 64 of file fib_types.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_fib_mpls_lsp_mode ( u8 s,
va_list *  ap 
)

Format an LSP mode type.

Definition at line 56 of file fib_types.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_fib_prefix ( u8 s,
va_list *  args 
)

Definition at line 177 of file fib_types.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_fib_protocol ( u8 s,
va_list *  ap 
)

Definition at line 32 of file fib_types.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_vnet_link ( u8 s,
va_list *  ap 
)

Definition at line 40 of file fib_types.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uword unformat_fib_route_path ( unformat_input_t input,
va_list *  args 
)

Unformat a fib_route_path_t from CLI input.

Definition at line 384 of file fib_types.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const char* fib_forw_chain_names[] = FIB_FORW_CHAINS
static

Definition at line 28 of file fib_types.c.

const char* fib_mpls_lsp_mode_names[] = FIB_MPLS_LSP_MODES
static

Definition at line 29 of file fib_types.c.

const char* fib_protocol_names[] = FIB_PROTOCOLS
static

Definition at line 26 of file fib_types.c.

const char* vnet_link_names[] = VNET_LINKS
static

Definition at line 27 of file fib_types.c.