|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
16 #ifndef __FIB_PATH_LIST_H__
17 #define __FIB_PATH_LIST_H__
91 #define FIB_PATH_LIST_ATTRIBUTES { \
92 [FIB_PATH_LIST_ATTRIBUTE_SHARED] = "shared", \
93 [FIB_PATH_LIST_ATTRIBUTE_RESOLVED] = "resolved", \
94 [FIB_PATH_LIST_ATTRIBUTE_DROP] = "drop", \
95 [FIB_PATH_LIST_ATTRIBUTE_EXCLUSIVE] = "exclusive", \
96 [FIB_PATH_LIST_ATTRIBUTE_LOCAL] = "local", \
97 [FIB_PATH_LIST_ATTRIBUTE_LOOPED] = "looped", \
98 [FIB_PATH_LIST_ATTRIBUTE_POPULAR] = "popular", \
99 [FIB_PATH_LIST_ATTRIBUTE_NO_URPF] = "no-uRPF", \
102 #define FOR_EACH_PATH_LIST_ATTRIBUTE(_item) \
103 for (_item = FIB_PATH_LIST_ATTRIBUTE_FIRST; \
104 _item <= FIB_PATH_LIST_ATTRIBUTE_LAST; \
112 #define FIB_PATH_LIST_KEY_FLAGS (FIB_PATH_LIST_FLAG_NO_URPF)
@ FIB_PATH_LIST_ATTRIBUTE_LAST
Marher.
dpo_proto_t fib_path_list_get_proto(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)
@ FIB_PATH_LIST_FLAG_DROP
fib_node_index_t * fib_path_list_paths_remove(fib_node_index_t path_list_index, const fib_route_path_t *rpaths)
@ FIB_PATH_LIST_ATTRIBUTE_RESOLVED
resolved path-list
@ FIB_PATH_LIST_ATTRIBUTE_EXCLUSIVE
exclusive path-list.
fib_path_list_fwd_flags_t_
Flags to control how the path-list returns forwarding information.
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
u32 fib_path_list_find_rpath(fib_node_index_t path_list_index, const fib_route_path_t *rpath)
enum fib_path_list_walk_rc_t_ fib_path_list_walk_rc_t
return code to control pat-hlist walk
@ FIB_PATH_LIST_FLAG_LOCAL
u8 * fib_path_list_format(fib_node_index_t pl_index, u8 *s)
@ FIB_PATH_LIST_ATTRIBUTE_SHARED
This path list is shareable.
@ FIB_PATH_LIST_FLAG_NONE
u32 fib_path_list_get_resolving_interface(fib_node_index_t path_list_index)
enum fib_node_type_t_ fib_node_type_t
The types of nodes in a FIB graph.
void fib_path_list_lock(fib_node_index_t pl_index)
enum fib_path_list_flags_t_ fib_path_list_flags_t
void fib_path_list_walk_w_ext(fib_node_index_t pl_index, const fib_path_ext_list_t *ext_list, fib_path_list_walk_w_ext_fn_t func, void *ctx)
u32 fib_path_list_child_add(fib_node_index_t pl_index, fib_node_type_t type, fib_node_index_t child_index)
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.
enum fib_forward_chain_type_t_ fib_forward_chain_type_t
FIB output chain type.
int fib_path_list_is_looped(fib_node_index_t path_list_index)
@ FIB_PATH_LIST_FLAG_SHARED
A list of path-extensions.
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
u32 fib_node_index_t
A typedef of a node index.
void fib_path_list_module_init(void)
int fib_path_list_is_popular(fib_node_index_t path_list_index)
fib_node_index_t fib_path_list_create_special(dpo_proto_t nh_proto, fib_path_list_flags_t flags, const dpo_id_t *dpo)
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)
enum fib_path_list_attribute_t_ fib_path_list_attribute_t
Enumeration of path-list flags.
u32 fib_path_list_pool_size(void)
int fib_path_list_recursive_loop_detect(fib_node_index_t path_list_index, fib_node_index_t **entry_indicies)
u8 * format_fib_path_list(u8 *s, va_list *args)
fib_path_list_walk_rc_t(* 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.
@ FIB_PATH_LIST_FLAG_RESOLVED
void fib_path_list_unlock(fib_node_index_t pl_index)
enum fib_path_list_fwd_flags_t_ fib_path_list_fwd_flags_t
Flags to control how the path-list returns forwarding information.
@ FIB_PATH_LIST_ATTRIBUTE_NO_URPF
no uRPF - do not generate unicast RPF list for this path-list
void fib_path_list_contribute_urpf(fib_node_index_t path_index, index_t urpf)
Contribute (add) this path list's uRPF list.
@ FIB_PATH_LIST_FLAG_LOOPED
u32 fib_path_list_get_n_paths(fib_node_index_t pl_index)
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)
A representation of a path as described by a route producer.
@ FIB_PATH_LIST_ATTRIBUTE_POPULAR
a popular path-ist is one that is shared amongst many entries.
void fib_path_list_walk(fib_node_index_t pl_index, fib_path_list_walk_fn_t func, void *ctx)
@ FIB_PATH_LIST_FLAG_POPULAR
u32 fib_path_list_db_size(void)
@ FIB_PATH_LIST_ATTRIBUTE_DROP
explicit drop path-list.
fib_node_index_t * fib_path_list_paths_add(fib_node_index_t path_list_index, const fib_route_path_t *rpaths)
A path extension is a per-entry addition to the forwarding information when packets are sent for that...
@ FIB_PATH_LIST_FWD_FLAG_NONE
@ FIB_PATH_LIST_FLAG_NO_URPF
@ FIB_PATH_LIST_ATTRIBUTE_FIRST
Marker.
Context passed between object during a back walk.
@ FIB_PATH_LIST_ATTRIBUTE_LOOPED
looped path-list.
@ FIB_PATH_LIST_FWD_FLAG_STICKY
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_child_remove(fib_node_index_t pl_index, fib_node_index_t sibling_index)
fib_path_list_walk_rc_t(* fib_path_list_walk_w_ext_fn_t)(fib_node_index_t pl_index, fib_node_index_t path_index, const struct fib_path_ext_t_ *ext_list, void *ctx)
void fib_path_list_contribute_forwarding(fib_node_index_t path_list_index, fib_forward_chain_type_t type, fib_path_list_fwd_flags_t flags, dpo_id_t *dpo)
@ FIB_PATH_LIST_FLAG_EXCLUSIVE
fib_path_list_attribute_t_
Enumeration of path-list flags.
@ FIB_PATH_LIST_ATTRIBUTE_LOCAL
explicit local path-list.
index_t fib_path_list_get_adj(fib_node_index_t path_list_index, fib_forward_chain_type_t type)
void fib_path_list_back_walk(fib_node_index_t pl_index, fib_node_back_walk_ctx_t *ctx)
index_t fib_path_list_lb_map_add_or_lock(fib_node_index_t pl_index, const fib_node_index_t *pis)
vl_api_fib_path_type_t type
@ FIB_PATH_LIST_FWD_FLAG_COLLAPSE
vl_api_wireguard_peer_flags_t flags