FD.io VPP
v17.07.01-10-g3be13f0
Vector Packet Processing
|
deterministic NAT More...
Go to the source code of this file.
Functions | |
int | snat_det_add_map (snat_main_t *sm, 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... | |
static uword | snat_det_expire_walk_fn (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f) |
The 'snat-det-expire-walk' process's main loop. More... | |
Variables | |
static vlib_node_registration_t | snat_det_expire_walk_node |
(constructor) VLIB_REGISTER_NODE (snat_det_expire_walk_node) More... | |
deterministic NAT
Definition in file snat_det.c.
int snat_det_add_map | ( | snat_main_t * | sm, |
ip4_address_t * | in_addr, | ||
u8 | in_plen, | ||
ip4_address_t * | out_addr, | ||
u8 | out_plen, | ||
int | is_add | ||
) |
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.
sm | SNAT main. |
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 40 of file snat_det.c.
|
static |
The 'snat-det-expire-walk' process's main loop.
Check expire time for active sessions.
Definition at line 113 of file snat_det.c.
|
static |
(constructor) VLIB_REGISTER_NODE (snat_det_expire_walk_node)
Definition at line 141 of file snat_det.c.