|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
73 return (delegate1->
mfd_type - delegate2->mfd_type);
120 s =
format(s,
"covered:[");
static void mfib_entry_delegate_init(mfib_entry_t *mfib_entry, mfib_entry_delegate_type_t type)
mfib_entry_delegate_t * mfib_entry_delegate_get(const mfib_entry_t *mfib_entry, mfib_entry_delegate_type_t type)
mfib_entry_delegate_t * mfib_entry_delegate_find_or_add(mfib_entry_t *mfib_entry, mfib_entry_delegate_type_t fdt)
static fib_node_index_t mfib_entry_get_index(const mfib_entry_t *mfe)
u8 * fib_node_children_format(fib_node_list_t list, u8 *s)
static int mfib_entry_delegate_cmp_for_sort(void *v1, void *v2)
@ MFIB_ENTRY_DELEGATE_COVERED
Dependency list of covered entries.
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
static mfib_entry_delegate_t * mfib_entry_delegate_find_i(const mfib_entry_t *mfib_entry, mfib_entry_delegate_type_t type, u32 *index)
void mfib_entry_delegate_remove(mfib_entry_t *mfib_entry, mfib_entry_delegate_type_t type)
fib_node_list_t mfd_list
For the cover tracking.
mfib_entry_delegate_t * fe_delegates
A vector of delegates.
description fragment has unexpected format
fib_node_index_t mfd_entry_index
The MFIB entry object to which the delagate is attached.
static mfib_entry_delegate_format_t fed_formatters[]
A delegate type to formatter map.
#define vec_foreach(var, vec)
Vector iterator.
#define vec_sort_with_function(vec, f)
Sort a vector using the supplied element comparison function.
u8 *(* mfib_entry_delegate_format_t)(const mfib_entry_delegate_t *fed, u8 *s)
typedef for printing a delegate
static u8 * mfib_entry_delegate_fmt_covered(const mfib_entry_delegate_t *fed, u8 *s)
Print a delegate that represents cover tracking.
A Delagate is a means to implmenet the Delagation design pattern; the extension of an objects functio...
mfib_entry_delegate_type_t mfd_type
The delagate type.
enum mfib_entry_delegate_type_t_ mfib_entry_delegate_type_t
Delegate types.
vl_api_fib_path_type_t type
#define vec_del1(v, i)
Delete the element at index I.
u8 * format_mfib_entry_deletegate(u8 *s, va_list *args)