deterministic NAT (CGN)
More...
Go to the source code of this file.
|
| | VNET_FEATURE_INIT (ip4_det44_in2out, static) |
| |
| | VNET_FEATURE_INIT (ip4_det44_out2in, static) |
| |
| | VLIB_PLUGIN_REGISTER () |
| |
| void | det44_add_del_addr_to_fib (ip4_address_t *addr, u8 p_len, u32 sw_if_index, int is_add) |
| |
| int | snat_det_add_map (ip4_address_t *in_addr, u8 in_plen, ip4_address_t *out_addr, u8 out_plen, int is_add) |
| | Add/delete deterministic NAT mapping. More...
|
| |
| int | det44_set_timeouts (nat_timeouts_t *timeouts) |
| |
| nat_timeouts_t | det44_get_timeouts () |
| |
| void | det44_reset_timeouts () |
| |
| int | det44_interface_add_del (u32 sw_if_index, u8 is_inside, int is_del) |
| |
| static uword | det44_expire_walk_fn (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f) |
| | The 'det44-expire-walk' process's main loop. More...
|
| |
| void | det44_create_expire_walk_process () |
| |
| int | det44_plugin_enable (det44_config_t c) |
| |
| int | det44_plugin_disable () |
| |
| static void | det44_update_outside_fib (ip4_main_t *im, uword opaque, u32 sw_if_index, u32 new_fib_index, u32 old_fib_index) |
| |
| static clib_error_t * | det44_init (vlib_main_t *vm) |
| |
| u8 * | format_det44_session_state (u8 *s, va_list *args) |
| |
| u8 * | format_det_map_ses (u8 *s, va_list *args) |
| |
deterministic NAT (CGN)
Definition in file det44.c.
◆ det44_add_del_addr_to_fib()
| void det44_add_del_addr_to_fib |
( |
ip4_address_t * |
addr, |
|
|
u8 |
p_len, |
|
|
u32 |
sw_if_index, |
|
|
int |
is_add |
|
) |
| |
◆ det44_create_expire_walk_process()
| void det44_create_expire_walk_process |
( |
| ) |
|
◆ det44_expire_walk_fn()
The 'det44-expire-walk' process's main loop.
Check expire time for active sessions.
Definition at line 323 of file det44.c.
◆ det44_get_timeouts()
◆ det44_init()
◆ det44_interface_add_del()
| int det44_interface_add_del |
( |
u32 |
sw_if_index, |
|
|
u8 |
is_inside, |
|
|
int |
is_del |
|
) |
| |
◆ det44_plugin_disable()
| int det44_plugin_disable |
( |
| ) |
|
◆ det44_plugin_enable()
◆ det44_reset_timeouts()
| void det44_reset_timeouts |
( |
| ) |
|
◆ det44_set_timeouts()
◆ det44_update_outside_fib()
| static void det44_update_outside_fib |
( |
ip4_main_t * |
im, |
|
|
uword |
opaque, |
|
|
u32 |
sw_if_index, |
|
|
u32 |
new_fib_index, |
|
|
u32 |
old_fib_index |
|
) |
| |
|
static |
◆ format_det44_session_state()
| u8* format_det44_session_state |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ format_det_map_ses()
| u8* format_det_map_ses |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
◆ snat_det_add_map()
Add/delete deterministic NAT mapping.
Create bijective mapping of inside address to outside address and port range pairs, with the purpose of enabling deterministic NAT to reduce logging in CGN deployments.
- Parameters
-
| in_addr | Inside network address. |
| in_plen | Inside network prefix length. |
| out_addr | Outside network address. |
| out_plen | Outside network prefix length. |
| is_add | If 0 delete, otherwise add. |
Definition at line 99 of file det44.c.
◆ VLIB_PLUGIN_REGISTER()
◆ VNET_FEATURE_INIT() [1/2]
| VNET_FEATURE_INIT |
( |
ip4_det44_in2out |
, |
|
|
static |
|
|
) |
| |
◆ VNET_FEATURE_INIT() [2/2]
| VNET_FEATURE_INIT |
( |
ip4_det44_out2in |
, |
|
|
static |
|
|
) |
| |
◆ det44_main