|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
30 #ifndef __IP4_FIB_8_H__
31 #define __IP4_FIB_8_H__
fib_node_index_t ip4_fib_8_table_lookup(const ip4_fib_8_t *fib, const ip4_address_t *addr, u32 len)
ip4_fib_hash_t hash
The hash table DB.
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.
ip4_mtrie_8_t mtrie
Mtrie for fast lookups.
The mutiway-TRIE with a 8-8-8-8 stride.
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 fib_node_index_t
A typedef of a node index.
CLIB_CACHE_LINE_ALIGN_MARK(cacheline0)
Required for pool_get_aligned.
fib_table_walk_rc_t(* fib_table_walk_fn_t)(fib_node_index_t fei, void *ctx)
Call back function when walking entries in a FIB table.
fib_node_index_t ip4_fib_8_table_lookup_exact_match(const ip4_fib_8_t *fib, const ip4_address_t *addr, u32 len)
u32 ip4_fib_8_table_lookup_lb(ip4_fib_8_t *fib, const ip4_address_t *dst)
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)
The identity of a DPO is a combination of its type and its instance number/index of objects of that t...
struct ip4_fib_8_t_ ip4_fib_8_t
The IPv4 FIB.
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.
void ip4_fib_8_table_free(ip4_fib_8_t *fib)
Aggregate type for a prefix.