16 #ifndef __FIB_PATH_LIST_H__ 17 #define __FIB_PATH_LIST_H__ 79 #define FIB_PATH_LIST_ATTRIBUTES { \ 80 [FIB_PATH_LIST_ATTRIBUTE_SHARED] = "shared", \ 81 [FIB_PATH_LIST_ATTRIBUTE_RESOLVED] = "resolved", \ 82 [FIB_PATH_LIST_ATTRIBUTE_DROP] = "drop", \ 83 [FIB_PATH_LIST_ATTRIBUTE_EXCLUSIVE] = "exclusive", \ 84 [FIB_PATH_LIST_ATTRIBUTE_LOCAL] = "local", \ 85 [FIB_PATH_LIST_ATTRIBUTE_LOOPED] = "looped", \ 88 #define FOR_EACH_PATH_LIST_ATTRIBUTE(_item) \ 89 for (_item = FIB_PATH_LIST_ATTRIBUTE_FIRST; \ 90 _item <= FIB_PATH_LIST_ATTRIBUTE_LAST; \ void fib_path_list_back_walk(fib_node_index_t pl_index, fib_node_back_walk_ctx_t *ctx)
enum fib_node_type_t_ fib_node_type_t
The types of nodes in a FIB graph.
int fib_path_list_recursive_loop_detect(fib_node_index_t path_list_index, fib_node_index_t **entry_indicies)
int fib_path_list_is_looped(fib_node_index_t path_list_index)
A representation of a path as described by a route producer.
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
fib_node_index_t fib_path_list_create_special(fib_protocol_t nh_proto, fib_path_list_flags_t flags, const dpo_id_t *dpo)
u32 fib_path_list_get_n_paths(fib_node_index_t pl_index)
fib_path_list_attribute_t_
Enumeration of path-list flags.
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
u8 * fib_path_list_adjs_format(fib_node_index_t pl_index, u32 indent, u8 *s)
u32 fib_path_list_get_resolving_interface(fib_node_index_t path_list_index)
fib_node_index_t fib_path_list_create(fib_path_list_flags_t flags, const fib_route_path_t *paths)
enum fib_path_list_attribute_t_ fib_path_list_attribute_t
Enumeration of path-list flags.
fib_protocol_t fib_path_list_get_proto(fib_node_index_t path_list_index)
void fib_path_list_walk(fib_node_index_t pl_index, fib_path_list_walk_fn_t func, void *ctx)
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
void fib_path_list_lock(fib_node_index_t pl_index)
index_t fib_path_list_get_adj(fib_node_index_t path_list_index, fib_forward_chain_type_t type)
fib_node_index_t fib_path_list_copy_and_path_remove(fib_node_index_t pl_index, fib_path_list_flags_t flags, const fib_route_path_t *path)
This path list is shareable.
void fib_path_list_contribute_forwarding(fib_node_index_t path_list_index, fib_forward_chain_type_t type, dpo_id_t *dpo)
explicit local path-list.
u8 * fib_path_list_format(fib_node_index_t pl_index, u8 *s)
void fib_path_list_unlock(fib_node_index_t pl_index)
u32 fib_node_index_t
A typedef of a node index.
int(* fib_path_list_walk_fn_t)(fib_node_index_t pl_index, fib_node_index_t path_index, void *ctx)
A callback function type for walking a path-list's paths.
index_t fib_path_list_lb_map_add_or_lock(fib_node_index_t pl_index, const fib_node_index_t *pis)
index_t fib_path_list_get_urpf(fib_node_index_t path_list_index)
Return the the child the RPF list pre-built for this path list.
Context passed between object during a back walk.
u32 fib_path_list_pool_size(void)
u32 fib_path_list_child_add(fib_node_index_t pl_index, fib_node_type_t type, fib_node_index_t child_index)
void fib_path_list_child_remove(fib_node_index_t pl_index, fib_node_index_t sibling_index)
enum fib_forward_chain_type_t_ fib_forward_chain_type_t
FIB output chain type.
void fib_path_list_contribute_urpf(fib_node_index_t path_index, index_t urpf)
Contribute (add) this path list's uRPF list.
void fib_path_list_module_init(void)
u32 fib_path_list_db_size(void)
fib_node_index_t fib_path_list_copy_and_path_add(fib_node_index_t pl_index, fib_path_list_flags_t flags, const fib_route_path_t *path)
enum fib_path_list_flags_t_ fib_path_list_flags_t