![]() |
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Include dependency graph for cnat_translation.c:Go to the source code of this file.
Data Structures | |
| struct | cnat_maglev_entry_t |
Variables | |
| cnat_translation_t * | cnat_translation_pool |
| clib_bihash_8_8_t | cnat_translation_db |
| addr_resolution_t * | tr_resolutions |
| cnat_if_addr_add_cb_t * | cnat_if_addr_add_cbs |
| static fib_node_type_t | cnat_translation_fib_node_type |
| vlib_combined_counter_main_t | cnat_translation_counters |
| Counters for each translation. More... | |
| static vlib_cli_command_t | cnat_translation_show_cmd_node |
| (constructor) VLIB_CLI_COMMAND (cnat_translation_show_cmd_node) More... | |
| static const fib_node_vft_t | cnat_translation_vft |
| static vlib_cli_command_t | cnat_translation_cli_add_del_command |
| (constructor) VLIB_CLI_COMMAND (cnat_translation_cli_add_del_command) More... | |
|
static |
Add a translation to the bihash.
| cci | the ID of the parent client (invalid if vip not resolved) |
| vip | the translation endpoint |
| proto | the translation proto |
| cti | the translation index to be used as value |
Definition at line 148 of file cnat_translation.c.
Here is the caller graph for this function:
|
static |
Definition at line 733 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Definition at line 700 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 802 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 790 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 212 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Remove a translation from the bihash.
| cci | the ID of the parent client |
| vip | the translation endpoint |
| proto | the translation proto |
Definition at line 180 of file cnat_translation.c.
Here is the caller graph for this function:
|
static |
Definition at line 56 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 80 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 89 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
| int cnat_translation_delete | ( | u32 | id | ) |
Delete a translation.
| id | the ID as returned from the create |
Definition at line 342 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
|
static |
Definition at line 231 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 599 of file cnat_translation.c.
| int cnat_translation_purge | ( | void | ) |
Purge all the trahslations.
Definition at line 557 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void cnat_translation_register_addr_add_cb | ( | cnat_addr_resol_type_t | typ, |
| cnat_if_addr_add_cb_t | fn | ||
| ) |
|
static |
|
static |
Definition at line 309 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void cnat_translation_unwatch_addr | ( | u32 | cti, |
| cnat_addr_resol_type_t | type | ||
| ) |
Cleanup matching addr resolution requests.
Definition at line 63 of file cnat_translation.c.
Here is the caller graph for this function:| u32 cnat_translation_update | ( | cnat_endpoint_t * | vip, |
| ip_protocol_t | ip_proto, | ||
| cnat_endpoint_tuple_t * | backends, | ||
| u8 | flags, | ||
| cnat_lb_type_t | lb_type | ||
| ) |
create or update a translation
| vip | The Virtual Endpoint |
| ip_proto | The ip protocol to translate |
| backends | the backends to choose from |
Definition at line 366 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void cnat_translation_walk | ( | cnat_translation_walk_cb_t | cb, |
| void * | ctx | ||
| ) |
Walk/visit each of the translations.
Definition at line 451 of file cnat_translation.c.
Here is the caller graph for this function:| void cnat_translation_watch_addr | ( | index_t | cti, |
| u64 | opaque, | ||
| cnat_endpoint_t * | ep, | ||
| cnat_addr_resol_type_t | type | ||
| ) |
Add an address resolution request.
Definition at line 39 of file cnat_translation.c.
Here is the caller graph for this function:Definition at line 463 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 478 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_cnat_lb_type | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 127 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:| cnat_if_addr_add_cb_t* cnat_if_addr_add_cbs |
Definition at line 29 of file cnat_translation.c.
|
static |
(constructor) VLIB_CLI_COMMAND (cnat_translation_cli_add_del_command)
Definition at line 692 of file cnat_translation.c.
| vlib_combined_counter_main_t cnat_translation_counters |
Counters for each translation.
Definition at line 33 of file cnat_translation.c.
| clib_bihash_8_8_t cnat_translation_db |
Definition at line 27 of file cnat_translation.c.
|
static |
Definition at line 31 of file cnat_translation.c.
| cnat_translation_t* cnat_translation_pool |
Definition at line 26 of file cnat_translation.c.
|
static |
(constructor) VLIB_CLI_COMMAND (cnat_translation_show_cmd_node)
Definition at line 576 of file cnat_translation.c.
|
static |
Definition at line 629 of file cnat_translation.c.
| addr_resolution_t* tr_resolutions |
Definition at line 28 of file cnat_translation.c.