FD.io VPP
v18.07-34-g55fbdb9
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | fib_entry_src_t_ |
Information related to the source of a FIB entry. More... | |
struct | fib_entry_t_ |
An entry in a FIB table. More... | |
Macros | |
#define | FIB_SOURCE_MAX (FIB_SOURCE_LAST+1) |
The maximum number of sources. More... | |
#define | FIB_SOURCES |
#define | FOR_EACH_FIB_SOURCE(_item) for (_item = FIB_SOURCE_FIRST; _item < FIB_SOURCE_MAX; _item++) |
#define | FIB_ENTRY_ATTRIBUTES |
#define | FOR_EACH_FIB_ATTRIBUTE(_item) |
#define | FIB_ENTRY_SRC_ATTRIBUTES |
#define | FOR_EACH_FIB_SRC_ATTRIBUTE(_item) |
#define | FOR_EACH_FIB_ENTRY_FLAG(_item) for (_item = FIB_ENTRY_FLAG_FIRST; _item < FIB_ENTRY_FLAG_MAX; _item++) |
#define | FIB_ENTRY_FORMAT_BRIEF (0x0) |
#define | FIB_ENTRY_FORMAT_DETAIL (0x1) |
#define | FIB_ENTRY_FORMAT_DETAIL2 (0x2) |
Typedefs | |
typedef enum fib_source_t_ | fib_source_t |
The different sources that can create a route. More... | |
typedef enum fib_entry_attribute_t_ | fib_entry_attribute_t |
The different sources that can create a route. More... | |
typedef enum fib_entry_flag_t_ | fib_entry_flag_t |
typedef enum fib_entry_src_attribute_t_ | fib_entry_src_attribute_t |
Flags for the source data. More... | |
typedef enum fib_entry_src_flag_t_ | fib_entry_src_flag_t |
typedef struct fib_entry_src_t_ | fib_entry_src_t |
Information related to the source of a FIB entry. More... | |
typedef struct fib_entry_t_ | fib_entry_t |
An entry in a FIB table. More... | |
#define FIB_ENTRY_ATTRIBUTES |
Definition at line 255 of file fib_entry.h.
#define FIB_ENTRY_FORMAT_BRIEF (0x0) |
Definition at line 512 of file fib_entry.h.
#define FIB_ENTRY_FORMAT_DETAIL (0x1) |
Definition at line 513 of file fib_entry.h.
#define FIB_ENTRY_FORMAT_DETAIL2 (0x2) |
Definition at line 514 of file fib_entry.h.
#define FIB_ENTRY_SRC_ATTRIBUTES |
Definition at line 320 of file fib_entry.h.
#define FIB_SOURCE_MAX (FIB_SOURCE_LAST+1) |
The maximum number of sources.
Definition at line 157 of file fib_entry.h.
#define FIB_SOURCES |
Definition at line 159 of file fib_entry.h.
#define FOR_EACH_FIB_ATTRIBUTE | ( | _item | ) |
Definition at line 269 of file fib_entry.h.
#define FOR_EACH_FIB_ENTRY_FLAG | ( | _item | ) | for (_item = FIB_ENTRY_FLAG_FIRST; _item < FIB_ENTRY_FLAG_MAX; _item++) |
Definition at line 509 of file fib_entry.h.
#define FOR_EACH_FIB_SOURCE | ( | _item | ) | for (_item = FIB_SOURCE_FIRST; _item < FIB_SOURCE_MAX; _item++) |
Definition at line 185 of file fib_entry.h.
#define FOR_EACH_FIB_SRC_ATTRIBUTE | ( | _item | ) |
Definition at line 327 of file fib_entry.h.
typedef enum fib_entry_attribute_t_ fib_entry_attribute_t |
The different sources that can create a route.
The sources are defined here the thier relative priority order. The lower the value the higher the priority
typedef enum fib_entry_flag_t_ fib_entry_flag_t |
typedef enum fib_entry_src_attribute_t_ fib_entry_src_attribute_t |
Flags for the source data.
typedef enum fib_entry_src_flag_t_ fib_entry_src_flag_t |
typedef struct fib_entry_src_t_ fib_entry_src_t |
Information related to the source of a FIB entry.
typedef struct fib_entry_t_ fib_entry_t |
An entry in a FIB table.
This entry represents a route added to the FIB that is stored in one of the FIB tables.
typedef enum fib_source_t_ fib_source_t |
The different sources that can create a route.
The sources are defined here the thier relative priority order. The lower the value the higher the priority
The different sources that can create a route.
The sources are defined here the thier relative priority order. The lower the value the higher the priority
Definition at line 193 of file fib_entry.h.
enum fib_entry_flag_t_ |
Definition at line 274 of file fib_entry.h.
Flags for the source data.
Definition at line 292 of file fib_entry.h.
Enumerator | |
---|---|
FIB_ENTRY_SRC_FLAG_NONE | |
FIB_ENTRY_SRC_FLAG_ADDED | |
FIB_ENTRY_SRC_FLAG_CONTRIBUTING | |
FIB_ENTRY_SRC_FLAG_ACTIVE | |
FIB_ENTRY_SRC_FLAG_INHERITED |
Definition at line 332 of file fib_entry.h.
enum fib_source_t_ |
The different sources that can create a route.
The sources are defined here the thier relative priority order. The lower the value the higher the priority
Definition at line 30 of file fib_entry.h.
u32 fib_entry_child_add | ( | fib_node_index_t | fib_entry_index, |
fib_node_type_t | type, | ||
fib_node_index_t | child_index | ||
) |
Definition at line 527 of file fib_entry.c.
void fib_entry_child_remove | ( | fib_node_index_t | fib_entry_index, |
u32 | sibling_index | ||
) |
Definition at line 538 of file fib_entry.c.
int fib_entry_cmp_for_sort | ( | void * | i1, |
void * | i2 | ||
) |
Definition at line 1568 of file fib_entry.c.
void fib_entry_contribute_forwarding | ( | fib_node_index_t | fib_entry_index, |
fib_forward_chain_type_t | type, | ||
dpo_id_t * | dpo | ||
) |
Definition at line 419 of file fib_entry.c.
const dpo_id_t* fib_entry_contribute_ip_forwarding | ( | fib_node_index_t | fib_entry_index | ) |
Definition at line 478 of file fib_entry.c.
void fib_entry_contribute_urpf | ( | fib_node_index_t | path_index, |
index_t | urpf | ||
) |
Contribute the set of Adjacencies that this entry forwards with to build the uRPF list of its children.
Definition at line 373 of file fib_entry.c.
void fib_entry_cover_changed | ( | fib_node_index_t | fib_entry | ) |
Definition at line 1218 of file fib_entry.c.
void fib_entry_cover_updated | ( | fib_node_index_t | fib_entry | ) |
Definition at line 1291 of file fib_entry.c.
fib_node_index_t fib_entry_create | ( | u32 | fib_index, |
const fib_prefix_t * | prefix, | ||
fib_source_t | source, | ||
fib_entry_flag_t | flags, | ||
const fib_route_path_t * | paths | ||
) |
Definition at line 689 of file fib_entry.c.
fib_node_index_t fib_entry_create_special | ( | u32 | fib_index, |
const fib_prefix_t * | prefix, | ||
fib_source_t | source, | ||
fib_entry_flag_t | flags, | ||
const dpo_id_t * | dpo | ||
) |
Definition at line 726 of file fib_entry.c.
fib_entry_src_flag_t fib_entry_delete | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source | ||
) |
fib_entry_delete
The source is withdrawing all the paths it provided
Definition at line 1174 of file fib_entry.c.
void fib_entry_encode | ( | fib_node_index_t | fib_entry_index, |
fib_route_path_encode_t ** | api_rpaths | ||
) |
Definition at line 1603 of file fib_entry.c.
fib_entry_t* fib_entry_get | ( | fib_node_index_t | fib_entry_index | ) |
Definition at line 45 of file fib_entry.c.
adj_index_t fib_entry_get_adj | ( | fib_node_index_t | fib_entry_index | ) |
adj_index_t fib_entry_get_adj_for_source | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source | ||
) |
fib_source_t fib_entry_get_best_source | ( | fib_node_index_t | fib_entry_index | ) |
Definition at line 1419 of file fib_entry.c.
const int fib_entry_get_dpo_for_source | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source, | ||
dpo_id_t * | dpo | ||
) |
Definition at line 1744 of file fib_entry_src.c.
u32 fib_entry_get_fib_index | ( | fib_node_index_t | fib_entry_index | ) |
Definition at line 1626 of file fib_entry.c.
fib_entry_flag_t fib_entry_get_flags | ( | fib_node_index_t | fib_entry_index | ) |
Definition at line 276 of file fib_entry.c.
fib_entry_flag_t fib_entry_get_flags_for_source | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source | ||
) |
Definition at line 1795 of file fib_entry_src.c.
fib_node_index_t fib_entry_get_index | ( | const fib_entry_t * | fib_entry | ) |
fib_node_index_t fib_entry_get_path_list | ( | fib_node_index_t | fib_entry_index | ) |
void fib_entry_get_prefix | ( | fib_node_index_t | fib_entry_index, |
fib_prefix_t * | pfx | ||
) |
Definition at line 1616 of file fib_entry.c.
u32 fib_entry_get_resolving_interface | ( | fib_node_index_t | fib_entry_index | ) |
Definition at line 1409 of file fib_entry.c.
u32 fib_entry_get_resolving_interface_for_source | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source | ||
) |
const void* fib_entry_get_source_data | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source | ||
) |
Definition at line 1855 of file fib_entry_src.c.
void fib_entry_inherit | ( | fib_node_index_t | cover, |
fib_node_index_t | covered | ||
) |
fib_entry_inherit
If the source on the cover is inherting then push this source down to the covered.
Definition at line 1161 of file fib_entry.c.
int fib_entry_is_host | ( | fib_node_index_t | fib_entry_index | ) |
Return !0 is the entry represents a host prefix.
Definition at line 1434 of file fib_entry.c.
int fib_entry_is_resolved | ( | fib_node_index_t | fib_entry_index | ) |
Return !0 is the entry is reoslved, i.e.
will return a valid forwarding chain
Definition at line 1448 of file fib_entry.c.
int fib_entry_is_sourced | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source | ||
) |
Definition at line 133 of file fib_entry_src.c.
void fib_entry_lock | ( | fib_node_index_t | fib_entry_index | ) |
Definition at line 1577 of file fib_entry.c.
void fib_entry_module_init | ( | void | ) |
Definition at line 1597 of file fib_entry.c.
void fib_entry_path_add | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source, | ||
fib_entry_flag_t | flags, | ||
const fib_route_path_t * | rpath | ||
) |
Definition at line 873 of file fib_entry.c.
fib_entry_src_flag_t fib_entry_path_remove | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source, | ||
const fib_route_path_t * | rpath | ||
) |
Definition at line 969 of file fib_entry.c.
u32 fib_entry_pool_size | ( | void | ) |
void fib_entry_recalculate_forwarding | ( | fib_node_index_t | fib_entry_index | ) |
int fib_entry_recursive_loop_detect | ( | fib_node_index_t | entry_index, |
fib_node_index_t ** | entry_indicies | ||
) |
Definition at line 1358 of file fib_entry.c.
void fib_entry_set_flow_hash_config | ( | fib_node_index_t | fib_entry_index, |
flow_hash_config_t | hash_config | ||
) |
Definition at line 1474 of file fib_entry.c.
void fib_entry_set_source_data | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source, | ||
const void * | data | ||
) |
Definition at line 1837 of file fib_entry_src.c.
void fib_entry_special_add | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source, | ||
fib_entry_flag_t | flags, | ||
const dpo_id_t * | dpo | ||
) |
Definition at line 840 of file fib_entry.c.
fib_entry_src_flag_t fib_entry_special_remove | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source | ||
) |
Definition at line 1061 of file fib_entry.c.
void fib_entry_special_update | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source, | ||
fib_entry_flag_t | flags, | ||
const dpo_id_t * | dpo | ||
) |
Definition at line 856 of file fib_entry.c.
void fib_entry_unlock | ( | fib_node_index_t | fib_entry_index | ) |
Definition at line 1587 of file fib_entry.c.
void fib_entry_update | ( | fib_node_index_t | fib_entry_index, |
fib_source_t | source, | ||
fib_entry_flag_t | flags, | ||
const fib_route_path_t * | paths | ||
) |
fib_entry_update
The source has provided a new set of paths that will replace the old.
Definition at line 1186 of file fib_entry.c.
Definition at line 104 of file fib_entry.c.
Definition at line 94 of file fib_entry.c.
STATIC_ASSERT | ( | sizeof(fib_source_t) | = =1 , |
"FIB too many sources" | |||
) |
STATIC_ASSERT | ( | sizeof(fib_entry_src_flag_t)<= | 2, |
"FIB entry flags field size too big" | |||
) |