|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
30 #ifndef __FIB_PATH_H__
31 #define __FIB_PATH_H__
115 #define FIB_PATH_CFG_ATTRIBUTE_MAX (FIB_PATH_CFG_ATTRIBUTE_LAST + 1)
117 #define FIB_PATH_CFG_ATTRIBUTES { \
118 [FIB_PATH_CFG_ATTRIBUTE_DROP] = "drop", \
119 [FIB_PATH_CFG_ATTRIBUTE_EXCLUSIVE] = "exclusive", \
120 [FIB_PATH_CFG_ATTRIBUTE_RESOLVE_HOST] = "resolve-host", \
121 [FIB_PATH_CFG_ATTRIBUTE_RESOLVE_ATTACHED] = "resolve-attached", \
122 [FIB_PATH_CFG_ATTRIBUTE_LOCAL] = "local", \
123 [FIB_PATH_CFG_ATTRIBUTE_ICMP_UNREACH] = "icmp-unreach", \
124 [FIB_PATH_CFG_ATTRIBUTE_ICMP_PROHIBIT] = "icmp-prohibit", \
125 [FIB_PATH_CFG_ATTRIBUTE_CLASSIFY] = "classify", \
126 [FIB_PATH_CFG_ATTRIBUTE_ATTACHED] = "attached", \
127 [FIB_PATH_CFG_ATTRIBUTE_INTF_RX] = "interface-rx", \
128 [FIB_PATH_CFG_ATTRIBUTE_RPF_ID] = "rpf-id", \
129 [FIB_PATH_CFG_ATTRIBUTE_DEAG_SRC] = "deag-src", \
130 [FIB_PATH_CFG_ATTRIBUTE_POP_PW_CW] = "pop-pw-cw", \
131 [FIB_PATH_CFG_ATTRIBUTE_GLEAN] = "glean", \
134 #define FOR_EACH_FIB_PATH_CFG_ATTRIBUTE(_item) \
135 for (_item = FIB_PATH_CFG_ATTRIBUTE_FIRST; \
136 _item <= FIB_PATH_CFG_ATTRIBUTE_LAST; \
@ FIB_PATH_CFG_FLAG_RESOLVE_HOST
@ FIB_PATH_CFG_FLAG_RESOLVE_ATTACHED
u16 fib_path_get_weight(fib_node_index_t path_index)
@ FIB_PATH_CFG_FLAG_POP_PW_CW
Path encode context to use when walking a path-list to encode paths.
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
@ FIB_PATH_CFG_FLAG_ICMP_UNREACH
void fib_path_destroy(fib_node_index_t path_index)
uword fib_path_hash(fib_node_index_t path_index)
enum fib_path_list_walk_rc_t_ fib_path_list_walk_rc_t
return code to control pat-hlist walk
vl_api_tunnel_mode_t mode
int fib_path_cmp(fib_node_index_t path_index1, fib_node_index_t path_index2)
enum fib_path_format_flags_t_ fib_format_path_flags_t
@ FIB_PATH_CFG_FLAG_INTF_RX
fib_node_index_t fib_path_copy(fib_node_index_t path_index, fib_node_index_t path_list_index)
@ FIB_PATH_CFG_FLAG_ICMP_PROHIBIT
@ FIB_PATH_CFG_FLAG_RPF_ID
void fib_path_stack_mpls_disp(fib_node_index_t path_index, dpo_proto_t payload_proto, fib_mpls_lsp_mode_t mode, dpo_id_t *dpo)
@ FIB_PATH_CFG_ATTRIBUTE_RPF_ID
The path is a deag with rpf-id.
u32 fib_path_get_rpf_id(fib_node_index_t path_index)
@ FIB_PATH_CFG_ATTRIBUTE_DROP
The path is forced to a drop, whatever the next-hop info says.
fib_route_path_t * rpaths
@ FIB_PATH_CFG_ATTRIBUTE_POP_PW_CW
The path pops a Psuedo Wire Control Word.
@ FIB_PATH_CFG_ATTRIBUTE_RESOLVE_HOST
Recursion constraint via host.
int fib_path_is_recursive_constrained(fib_node_index_t path_index)
@ FIB_PATH_FORMAT_FLAGS_NONE
int fib_path_resolve(fib_node_index_t path_index)
void fib_path_module_init(void)
void fib_path_contribute_forwarding(fib_node_index_t path_index, fib_forward_chain_type_t type, dpo_id_t *dpo)
enum fib_forward_chain_type_t_ fib_forward_chain_type_t
FIB output chain type.
int fib_path_cmp_for_sort(void *a1, void *a2)
int fib_path_is_exclusive(fib_node_index_t path_index)
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.
@ FIB_PATH_CFG_FLAG_ATTACHED
u16 fib_path_get_preference(fib_node_index_t path_index)
@ FIB_PATH_CFG_ATTRIBUTE_LAST
Marker.
dpo_proto_t fib_path_get_proto(fib_node_index_t path_index)
enum fib_mpls_lsp_mode_t_ fib_mpls_lsp_mode_t
MPLS LSP mode - only valid at the head and tail.
int fib_path_is_resolved(fib_node_index_t path_index)
@ FIB_PATH_CFG_ATTRIBUTE_INTF_RX
The path is a for-us path.
fib_path_list_walk_rc_t fib_path_encode(fib_node_index_t path_list_index, fib_node_index_t path_index, const struct fib_path_ext_t_ *ext_list, void *ctx)
@ FIB_PATH_CFG_ATTRIBUTE_EXCLUSIVE
The path uses an adj that is exclusive.
u8 * format_fib_path(u8 *s, va_list *args)
@ FIB_PATH_FORMAT_FLAGS_ONE_LINE
u32 fib_path_get_resolving_interface(fib_node_index_t fib_entry_index)
@ FIB_PATH_CFG_FLAG_LOCAL
@ FIB_PATH_CFG_FLAG_EXCLUSIVE
fib_node_index_t fib_path_create(fib_node_index_t pl_index, const fib_route_path_t *path)
int fib_path_is_deag(fib_node_index_t path_index)
index_t fib_path_get_resolving_index(fib_node_index_t path_index)
int fib_path_is_looped(fib_node_index_t path_index)
void fib_path_contribute_urpf(fib_node_index_t path_index, index_t urpf)
Contribute the path's adjacency to the list passed.
enum fib_path_cfg_attribute_t_ fib_path_cfg_attribute_t
Given a route of the form; q.r.s.t/Y via <interface> <next-hop>
@ FIB_PATH_CFG_FLAG_DEAG_SRC
@ FIB_PATH_CFG_FLAG_CLASSIFY
int fib_path_recursive_loop_detect(fib_node_index_t path_index, fib_node_index_t **entry_indicies)
@ FIB_PATH_CFG_ATTRIBUTE_LOCAL
The path is an interface recieve.
A representation of a path as described by a route producer.
adj_index_t fib_path_get_adj(fib_node_index_t path_index)
@ FIB_PATH_CFG_ATTRIBUTE_RESOLVE_ATTACHED
Recursion constraint via attached.
u32 adj_index_t
An index for adjacencies.
@ FIB_PATH_CFG_ATTRIBUTE_GLEAN
The path is a glean.
int fib_path_cmp_w_route_path(fib_node_index_t path_index, const fib_route_path_t *rpath)
A path extension is a per-entry addition to the forwarding information when packets are sent for that...
@ FIB_PATH_CFG_ATTRIBUTE_FIRST
Marker.
fib_path_cfg_flags_t_
Path config flags from the attributes.
@ FIB_PATH_CFG_FLAG_GLEAN
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
@ FIB_PATH_CFG_ATTRIBUTE_ATTACHED
The path is attached.
struct fib_path_encode_ctx_t_ fib_path_encode_ctx_t
Path encode context to use when walking a path-list to encode paths.
fib_node_index_t fib_path_create_special(fib_node_index_t pl_index, dpo_proto_t nh_proto, fib_path_cfg_flags_t flags, const dpo_id_t *dpo)
fib_path_cfg_attribute_t_
Given a route of the form; q.r.s.t/Y via <interface> <next-hop>
@ FIB_PATH_CFG_ATTRIBUTE_CLASSIFY
The path reolves via a classify.
@ FIB_PATH_CFG_ATTRIBUTE_DEAG_SRC
The deag path does a source lookup.
enum fib_path_cfg_flags_t_ fib_path_cfg_flags_t
Path config flags from the attributes.
One path from an [EU]CMP set that the client wants to add to a load-balance object.
@ FIB_PATH_CFG_ATTRIBUTE_ICMP_PROHIBIT
The path reolves via an ICMP prohibit.
load_balance_path_t * fib_path_append_nh_for_multipath_hash(fib_node_index_t path_index, fib_forward_chain_type_t fct, load_balance_path_t *hash_key)
vl_api_fib_path_type_t type
@ FIB_PATH_CFG_ATTRIBUTE_ICMP_UNREACH
The path reolves via an ICMP unreachable.
vl_api_wireguard_peer_flags_t flags