Go to the source code of this file.
|
static u32 | ip4_create_fib_with_table_id (u32 table_id) |
|
void | ip4_fib_table_destroy (u32 fib_index) |
|
u32 | ip4_fib_table_find_or_create_and_lock (u32 table_id) |
| Get or create an IPv4 fib. More...
|
|
u32 | ip4_fib_table_create_and_lock (void) |
|
u32 | ip4_fib_table_get_index_for_sw_if_index (u32 sw_if_index) |
|
fib_node_index_t | ip4_fib_table_lookup_exact_match (const ip4_fib_t *fib, const ip4_address_t *addr, u32 len) |
|
index_t | ip4_fib_table_lookup_lb (ip4_fib_t *fib, const ip4_address_t *addr) |
|
fib_node_index_t | ip4_fib_table_lookup (const ip4_fib_t *fib, const ip4_address_t *addr, u32 len) |
|
void | ip4_fib_table_entry_insert (ip4_fib_t *fib, const ip4_address_t *addr, u32 len, fib_node_index_t fib_entry_index) |
|
void | ip4_fib_table_entry_remove (ip4_fib_t *fib, const ip4_address_t *addr, u32 len) |
|
void | ip4_fib_table_fwding_dpo_update (ip4_fib_t *fib, const ip4_address_t *addr, u32 len, const dpo_id_t *dpo) |
|
void | ip4_fib_table_fwding_dpo_remove (ip4_fib_t *fib, const ip4_address_t *addr, u32 len, const dpo_id_t *dpo, u32 cover_index) |
|
void | ip4_fib_table_walk (ip4_fib_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...
|
|
static int | ip4_fib_show_walk_cb (fib_node_index_t fib_entry_index, void *arg) |
|
static void | ip4_fib_table_show_all (ip4_fib_t *fib, vlib_main_t *vm) |
|
static void | ip4_fib_table_show_one (ip4_fib_t *fib, vlib_main_t *vm, ip4_address_t *address, u32 mask_len, int detail) |
|
static clib_error_t * | ip4_show_fib (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static u32 ip4_create_fib_with_table_id |
( |
u32 |
table_id | ) |
|
|
static |
static int ip4_fib_show_walk_cb |
( |
fib_node_index_t |
fib_entry_index, |
|
|
void * |
arg |
|
) |
| |
|
static |
u32 ip4_fib_table_create_and_lock |
( |
void |
| ) |
|
void ip4_fib_table_destroy |
( |
u32 |
fib_index | ) |
|
u32 ip4_fib_table_find_or_create_and_lock |
( |
u32 |
table_id | ) |
|
Get or create an IPv4 fib.
Get or create an IPv4 fib with the provided table ID.
- Parameters
-
table_id | When set to ~0 , an arbitrary and unused fib ID is picked and can be retrieved with ret->table_id . Otherwise, the fib ID to be used to retrieve or create the desired fib. |
- Returns
- A pointer to the retrieved or created fib.
Definition at line 201 of file ip4_fib.c.
u32 ip4_fib_table_get_index_for_sw_if_index |
( |
u32 |
sw_if_index | ) |
|
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 402 of file ip4_fib.c.
Initial value:= {
.path = "show ip fib",
.short_help = "show ip fib [summary] [table <table-id>] [index <fib-id>] [<ip4-addr>[/<mask>]] [mtrie] [detail]",
}
static clib_error_t * ip4_show_fib(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (ip4_show_fib_command)
Definition at line 718 of file ip4_fib.c.