Go to the source code of this file.
|
fib_node_index_t | ip4_fib_8_table_lookup (const ip4_fib_8_t *fib, const ip4_address_t *addr, u32 len) |
|
fib_node_index_t | ip4_fib_8_table_lookup_exact_match (const ip4_fib_8_t *fib, const ip4_address_t *addr, u32 len) |
|
void | ip4_fib_8_table_entry_remove (ip4_fib_8_t *fib, const ip4_address_t *addr, u32 len) |
|
void | ip4_fib_8_table_entry_insert (ip4_fib_8_t *fib, const ip4_address_t *addr, u32 len, fib_node_index_t fib_entry_index) |
|
void | ip4_fib_8_table_free (ip4_fib_8_t *fib) |
|
void | ip4_fib_8_table_init (ip4_fib_8_t *fib) |
|
void | ip4_fib_8_table_fwding_dpo_update (ip4_fib_8_t *fib, const ip4_address_t *addr, u32 len, const dpo_id_t *dpo) |
|
void | ip4_fib_8_table_fwding_dpo_remove (ip4_fib_8_t *fib, const ip4_address_t *addr, u32 len, const dpo_id_t *dpo, fib_node_index_t cover_index) |
|
u32 | ip4_fib_8_table_lookup_lb (ip4_fib_8_t *fib, const ip4_address_t *dst) |
|
void | ip4_fib_8_table_walk (ip4_fib_8_t *fib, fib_table_walk_fn_t fn, void *ctx) |
| Walk all entries in a FIB table N.B: This is NOT safe to deletes. More...
|
|
void | ip4_fib_8_table_sub_tree_walk (ip4_fib_8_t *fib, const fib_prefix_t *root, fib_table_walk_fn_t fn, void *ctx) |
| Walk all entries in a sub-tree of the FIB table N.B: This is NOT safe to deletes. More...
|
|
◆ ip4_fib_8_t
The IPv4 FIB.
FIBs are composed of two prefix data-bases (akak tables). The non-forwarding table contains all the routes that the control plane has programmed, the forwarding table contains the sub-set of those routes that can be used to forward packets. In the IPv4 FIB the non-forwarding table is an array of hash tables indexed by mask length, the forwarding table is an mtrie
This IPv4 FIB is used by the protocol independent FIB. So directly using this APIs in client code is not encouraged. However, this IPv4 FIB can be used if all the client wants is an IPv4 prefix data-base
◆ ip4_fib_8_table_entry_insert()
◆ ip4_fib_8_table_entry_remove()
◆ ip4_fib_8_table_free()
◆ ip4_fib_8_table_fwding_dpo_remove()
◆ ip4_fib_8_table_fwding_dpo_update()
◆ ip4_fib_8_table_init()
◆ ip4_fib_8_table_lookup()
◆ ip4_fib_8_table_lookup_exact_match()
◆ ip4_fib_8_table_lookup_lb()
◆ ip4_fib_8_table_sub_tree_walk()
Walk all entries in a sub-tree of the FIB table N.B: This is NOT safe to deletes.
If you need to delete walk the whole table and store elements in a vector, then delete the elements
Definition at line 131 of file ip4_fib_8.c.
◆ ip4_fib_8_table_walk()
Walk all entries in a FIB table N.B: This is NOT safe to deletes.
If you need to delete walk the whole table and store elements in a vector, then delete the elements
Definition at line 123 of file ip4_fib_8.c.
◆ ip4_fib_8s