![]() |
FD.io VPP
v21.01-8-g9330de53e
Vector Packet Processing
|
Include dependency graph for cnat_translation.c:Go to the source code of this file.
Typedefs | |
| typedef void(* | cnat_if_addr_add_cb_t) (addr_resolution_t *ar, ip_address_t *address, u8 is_del) |
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... | |
| typedef void(* cnat_if_addr_add_cb_t) (addr_resolution_t *ar, ip_address_t *address, u8 is_del) |
Definition at line 30 of file cnat_translation.c.
|
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 122 of file cnat_translation.c.
Here is the caller graph for this function:
|
static |
Definition at line 579 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 621 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 546 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 675 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 663 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 154 of file cnat_translation.c.
Here is the caller graph for this function:
|
static |
Definition at line 59 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 84 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 93 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 205 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 446 of file cnat_translation.c.
| int cnat_translation_purge | ( | void | ) |
Purge all the trahslations.
Definition at line 400 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 178 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 66 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 | ||
| ) |
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 228 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 311 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 42 of file cnat_translation.c.
Here is the caller graph for this function:Definition at line 325 of file cnat_translation.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 340 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 32 of file cnat_translation.c.
|
static |
(constructor) VLIB_CLI_COMMAND (cnat_translation_cli_add_del_command)
Definition at line 537 of file cnat_translation.c.
| vlib_combined_counter_main_t cnat_translation_counters |
Counters for each translation.
Definition at line 36 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 34 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 422 of file cnat_translation.c.
|
static |
Definition at line 476 of file cnat_translation.c.
| addr_resolution_t* tr_resolutions |
Definition at line 28 of file cnat_translation.c.