FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
ip4_fib_16.c File Reference
+ Include dependency graph for ip4_fib_16.c:

Go to the source code of this file.

Functions

void ip4_fib_16_table_init (ip4_fib_16_t *fib)
 
void ip4_fib_16_table_free (ip4_fib_16_t *fib)
 
fib_node_index_t ip4_fib_16_table_lookup_exact_match (const ip4_fib_16_t *fib, const ip4_address_t *addr, u32 len)
 
index_t ip4_fib_16_table_lookup_lb (ip4_fib_16_t *fib, const ip4_address_t *addr)
 
fib_node_index_t ip4_fib_16_table_lookup (const ip4_fib_16_t *fib, const ip4_address_t *addr, u32 len)
 
void ip4_fib_16_table_entry_insert (ip4_fib_16_t *fib, const ip4_address_t *addr, u32 len, fib_node_index_t fib_entry_index)
 
void ip4_fib_16_table_entry_remove (ip4_fib_16_t *fib, const ip4_address_t *addr, u32 len)
 
void ip4_fib_16_table_fwding_dpo_update (ip4_fib_16_t *fib, const ip4_address_t *addr, u32 len, const dpo_id_t *dpo)
 
void ip4_fib_16_table_fwding_dpo_remove (ip4_fib_16_t *fib, const ip4_address_t *addr, u32 len, const dpo_id_t *dpo, u32 cover_index)
 
void ip4_fib_16_table_walk (ip4_fib_16_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_16_table_sub_tree_walk (ip4_fib_16_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...
 

Variables

ip4_fib_16_tip4_fib_16s
 

Function Documentation

◆ ip4_fib_16_table_entry_insert()

void ip4_fib_16_table_entry_insert ( ip4_fib_16_t fib,
const ip4_address_t addr,
u32  len,
fib_node_index_t  fib_entry_index 
)

Definition at line 73 of file ip4_fib_16.c.

+ Here is the call graph for this function:

◆ ip4_fib_16_table_entry_remove()

void ip4_fib_16_table_entry_remove ( ip4_fib_16_t fib,
const ip4_address_t addr,
u32  len 
)

Definition at line 82 of file ip4_fib_16.c.

+ Here is the call graph for this function:

◆ ip4_fib_16_table_free()

void ip4_fib_16_table_free ( ip4_fib_16_t fib)

Definition at line 29 of file ip4_fib_16.c.

+ Here is the call graph for this function:

◆ ip4_fib_16_table_fwding_dpo_remove()

void ip4_fib_16_table_fwding_dpo_remove ( ip4_fib_16_t fib,
const ip4_address_t addr,
u32  len,
const dpo_id_t dpo,
u32  cover_index 
)

Definition at line 99 of file ip4_fib_16.c.

+ Here is the call graph for this function:

◆ ip4_fib_16_table_fwding_dpo_update()

void ip4_fib_16_table_fwding_dpo_update ( ip4_fib_16_t fib,
const ip4_address_t addr,
u32  len,
const dpo_id_t dpo 
)

Definition at line 90 of file ip4_fib_16.c.

+ Here is the call graph for this function:

◆ ip4_fib_16_table_init()

void ip4_fib_16_table_init ( ip4_fib_16_t fib)

Definition at line 23 of file ip4_fib_16.c.

+ Here is the call graph for this function:

◆ ip4_fib_16_table_lookup()

fib_node_index_t ip4_fib_16_table_lookup ( const ip4_fib_16_t fib,
const ip4_address_t addr,
u32  len 
)

Definition at line 65 of file ip4_fib_16.c.

+ Here is the call graph for this function:

◆ ip4_fib_16_table_lookup_exact_match()

fib_node_index_t ip4_fib_16_table_lookup_exact_match ( const ip4_fib_16_t fib,
const ip4_address_t addr,
u32  len 
)

Definition at line 40 of file ip4_fib_16.c.

+ Here is the call graph for this function:

◆ ip4_fib_16_table_lookup_lb()

index_t ip4_fib_16_table_lookup_lb ( ip4_fib_16_t fib,
const ip4_address_t addr 
)

Definition at line 53 of file ip4_fib_16.c.

+ Here is the call graph for this function:

◆ ip4_fib_16_table_sub_tree_walk()

void ip4_fib_16_table_sub_tree_walk ( ip4_fib_16_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.

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_16.c.

+ Here is the call graph for this function:

◆ ip4_fib_16_table_walk()

void ip4_fib_16_table_walk ( ip4_fib_16_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.

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_16.c.

+ Here is the call graph for this function:

Variable Documentation

◆ ip4_fib_16s

ip4_fib_16_t* ip4_fib_16s

Definition at line 20 of file ip4_fib_16.c.