128 if (src->
u.
mpls.fesm_label != label)
151 src->
u.
mpls.fesm_lfes[eos] =
166 return (&(src->
u.
mpls.fesm_label));
173 return (
format(s,
" local-label:%d", src->
u.
mpls.fesm_label));
associated label stored in private data
fib_protocol_t fp_proto
protocol type
static void fib_entry_src_mpls_remove(fib_entry_src_t *src)
fib_entry_src_init_t fesv_init
struct fib_entry_src_t_::@207::@212 mpls
static void fib_entry_src_mpls_add(fib_entry_src_t *src, const fib_entry_t *entry, fib_entry_flag_t flags, dpo_proto_t proto, const dpo_id_t *dpo)
static u8 * fib_entry_src_mpls_format(fib_entry_src_t *src, u8 *s)
static const void * fib_entry_src_mpls_get_data(fib_entry_src_t *src, const fib_entry_t *entry)
Virtual function table each FIB entry source will register.
Information related to the source of a FIB entry.
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)
void fib_entry_contribute_forwarding(fib_node_index_t fib_entry_index, fib_forward_chain_type_t fct, dpo_id_t *dpo)
u32 mpls_label_t
A label value only, i.e.
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
const dpo_id_t * drop_dpo_get(dpo_proto_t proto)
dpo_proto_t fp_payload_proto
This protocol determines the payload protocol of packets that will be forwarded by this entry once th...
Aggregate type for a prefix.
fib_node_index_t fib_entry_get_index(const fib_entry_t *fib_entry)
enum dpo_proto_t_ dpo_proto_t
Data path protocol.
static void fib_entry_src_mpls_init(fib_entry_src_t *src)
Source initialisation Function.
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
Contribute an object that is to be used to forward end-of-stack MPLS packets.
static void fib_entry_src_mpls_deinit(fib_entry_src_t *src)
Source deinitialisation Function.
union fib_entry_src_t_::@207 u
Source specific info.
void fib_table_unlock(u32 fib_index, fib_protocol_t proto, fib_source_t source)
Take a reference counting lock on the table.
#define MPLS_FIB_DEFAULT_TABLE_ID
void fib_table_entry_delete_index(fib_node_index_t fib_entry_index, fib_source_t source)
Delete a FIB entry.
#define MPLS_LABEL_INVALID
u32 fib_node_index_t
A typedef of a node index.
u32 mpls_fib_index_from_table_id(u32 table_id)
enum fib_entry_flag_t_ fib_entry_flag_t
fib_node_index_t fib_table_entry_special_dpo_add(u32 fib_index, const fib_prefix_t *prefix, fib_source_t source, fib_entry_flag_t flags, const dpo_id_t *dpo)
Add a 'special' entry to the FIB that links to the DPO passed A special entry is an entry that the FI...
#define FOR_EACH_MPLS_EOS_BIT(_eos)
fib_entry_src_flag_t fes_flags
Flags on the source.
u32 fib_table_find_or_create_and_lock(fib_protocol_t proto, u32 table_id, fib_source_t src)
Get the index of the FIB for a Table-ID.
dpo_proto_t fib_proto_to_dpo(fib_protocol_t fib_proto)
fib_node_index_t fes_pl
The path-list created by the source.
#define FIB_NODE_INDEX_INVALID
#define DPO_INVALID
An initialiser for DPOs declared on the stack.
static void fib_entry_src_mpls_set_data(fib_entry_src_t *src, const fib_entry_t *entry, const void *data)
void dpo_reset(dpo_id_t *dpo)
reset a DPO ID The DPO will be unlocked.
Contribute an object that is to be used to forward non-end-of-stack MPLS packets. ...
void fib_entry_src_behaviour_register(fib_source_behaviour_t bh, const fib_entry_src_vft_t *vft)
void fib_entry_src_mpls_register(void)
const fib_prefix_t fe_prefix
The prefix of the route.
enum mpls_eos_bit_t_ mpls_eos_bit_t