FD.io VPP  v21.01.1
Vector Packet Processing
nat66.c File Reference

NAT66 implementation. More...

+ Include dependency graph for nat66.c:

Go to the source code of this file.

Functions

 VNET_FEATURE_INIT (nat66_in2out, static)
 
 VNET_FEATURE_INIT (nat66_out2in, static)
 
clib_error_tnat66_plugin_api_hookup (vlib_main_t *vm)
 
static clib_error_tnat66_init (vlib_main_t *vm)
 
static void nat66_validate_counters (nat66_main_t *nm, u32 sw_if_index)
 
int nat66_interface_add_del (u32 sw_if_index, u8 is_inside, u8 is_add)
 
void nat66_interfaces_walk (nat66_interface_walk_fn_t fn, void *ctx)
 
nat66_static_mapping_tnat66_static_mapping_get (ip6_address_t *addr, u32 fib_index, u8 is_local)
 
int nat66_static_mapping_add_del (ip6_address_t *l_addr, ip6_address_t *e_addr, u32 vrf_id, u8 is_add)
 
void nat66_static_mappings_walk (nat66_static_mapping_walk_fn_t fn, void *ctx)
 
void nat66_config (void)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

nat66_main_t nat66_main
 
fib_source_t nat_fib_src_hi
 

Detailed Description

NAT66 implementation.

Definition in file nat66.c.

Function Documentation

◆ nat66_config()

void nat66_config ( void  )

Definition at line 269 of file nat66.c.

+ Here is the call graph for this function:

◆ nat66_init()

static clib_error_t* nat66_init ( vlib_main_t vm)
static

Definition at line 49 of file nat66.c.

+ Here is the call graph for this function:

◆ nat66_interface_add_del()

int nat66_interface_add_del ( u32  sw_if_index,
u8  is_inside,
u8  is_add 
)

Definition at line 90 of file nat66.c.

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

◆ nat66_interfaces_walk()

void nat66_interfaces_walk ( nat66_interface_walk_fn_t  fn,
void *  ctx 
)

Definition at line 136 of file nat66.c.

+ Here is the caller graph for this function:

◆ nat66_plugin_api_hookup()

clib_error_t* nat66_plugin_api_hookup ( vlib_main_t vm)

Definition at line 167 of file nat66_api.c.

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

◆ nat66_static_mapping_add_del()

int nat66_static_mapping_add_del ( ip6_address_t *  l_addr,
ip6_address_t *  e_addr,
u32  vrf_id,
u8  is_add 
)

Definition at line 175 of file nat66.c.

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

◆ nat66_static_mapping_get()

nat66_static_mapping_t* nat66_static_mapping_get ( ip6_address_t *  addr,
u32  fib_index,
u8  is_local 
)

Definition at line 151 of file nat66.c.

+ Here is the caller graph for this function:

◆ nat66_static_mappings_walk()

void nat66_static_mappings_walk ( nat66_static_mapping_walk_fn_t  fn,
void *  ctx 
)

Definition at line 254 of file nat66.c.

+ Here is the caller graph for this function:

◆ nat66_validate_counters()

static void nat66_validate_counters ( nat66_main_t nm,
u32  sw_if_index 
)
static

Definition at line 81 of file nat66.c.

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

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )
+ Here is the caller graph for this function:

◆ VNET_FEATURE_INIT() [1/2]

VNET_FEATURE_INIT ( nat66_in2out  ,
static   
)

◆ VNET_FEATURE_INIT() [2/2]

VNET_FEATURE_INIT ( nat66_out2in  ,
static   
)

Variable Documentation

◆ nat66_main

nat66_main_t nat66_main

Definition at line 26 of file nat66.c.

◆ nat_fib_src_hi

fib_source_t nat_fib_src_hi

Definition at line 27 of file nat66.c.