FD.io VPP  v19.08.3-2-gbabecb413
Vector Packet Processing
nat_det.c File Reference

deterministic NAT More...

+ Include dependency graph for nat_det.c:

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 'nat-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...
 

Detailed Description

deterministic NAT

Definition in file nat_det.c.

Function Documentation

◆ snat_det_add_map()

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.

Parameters
smSNAT main.
in_addrInside network address.
in_plenInside network prefix length.
out_addrOutside network address.
out_plenOutside network prefix length.
is_addIf 0 delete, otherwise add.

Definition at line 40 of file nat_det.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ snat_det_expire_walk_fn()

static uword snat_det_expire_walk_fn ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

The 'nat-det-expire-walk' process's main loop.

Check expire time for active sessions.

Definition at line 130 of file nat_det.c.

+ Here is the call graph for this function:

Variable Documentation

◆ snat_det_expire_walk_node

static vlib_node_registration_t snat_det_expire_walk_node
static
Initial value:
= {
.name =
"nat-det-expire-walk",
}
static uword snat_det_expire_walk_fn(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
The 'nat-det-expire-walk' process's main loop.
Definition: nat_det.c:130

(constructor) VLIB_REGISTER_NODE (snat_det_expire_walk_node)

Definition at line 158 of file nat_det.c.