FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
pnat.c File Reference
+ Include dependency graph for pnat.c:

Go to the source code of this file.

Functions

pnat_interface_tpnat_interface_by_sw_if_index (u32 sw_if_index)
 
static pnat_mask_fast_t pnat_mask2fast (pnat_mask_t lookup_mask)
 
static clib_error_tpnat_enable_interface (u32 sw_if_index, pnat_attachment_point_t attachment, pnat_mask_t mask)
 
static int pnat_disable_interface (u32 sw_if_index, pnat_attachment_point_t attachment)
 
static void pnat_calc_key_from_5tuple (u32 sw_if_index, pnat_attachment_point_t attachment, pnat_match_tuple_t *match, clib_bihash_kv_16_8_t *kv)
 
pnat_instructions_t pnat_instructions_from_mask (pnat_mask_t m)
 
static void pnat_enable (void)
 
static void pnat_disable (void)
 
static int pnat_interface_check_mask (u32 sw_if_index, pnat_attachment_point_t attachment, pnat_mask_t mask)
 
int pnat_binding_add (pnat_match_tuple_t *match, pnat_rewrite_tuple_t *rewrite, u32 *index)
 
u32 pnat_flow_lookup (u32 sw_if_index, pnat_attachment_point_t attachment, pnat_match_tuple_t *match)
 
int pnat_binding_attach (u32 sw_if_index, pnat_attachment_point_t attachment, u32 binding_index)
 
int pnat_binding_detach (u32 sw_if_index, pnat_attachment_point_t attachment, u32 binding_index)
 
int pnat_binding_del (u32 index)
 

Variables

pnat_main_t pnat_main
 

Function Documentation

◆ pnat_binding_add()

int pnat_binding_add ( pnat_match_tuple_t match,
pnat_rewrite_tuple_t rewrite,
u32 index 
)

Definition at line 271 of file pnat.c.

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

◆ pnat_binding_attach()

int pnat_binding_attach ( u32  sw_if_index,
pnat_attachment_point_t  attachment,
u32  binding_index 
)

Definition at line 329 of file pnat.c.

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

◆ pnat_binding_del()

int pnat_binding_del ( u32  index)

Definition at line 392 of file pnat.c.

+ Here is the caller graph for this function:

◆ pnat_binding_detach()

int pnat_binding_detach ( u32  sw_if_index,
pnat_attachment_point_t  attachment,
u32  binding_index 
)

Definition at line 364 of file pnat.c.

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

◆ pnat_calc_key_from_5tuple()

static void pnat_calc_key_from_5tuple ( u32  sw_if_index,
pnat_attachment_point_t  attachment,
pnat_match_tuple_t match,
clib_bihash_kv_16_8_t kv 
)
inlinestatic

Definition at line 185 of file pnat.c.

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

◆ pnat_disable()

static void pnat_disable ( void  )
static

Definition at line 233 of file pnat.c.

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

◆ pnat_disable_interface()

static int pnat_disable_interface ( u32  sw_if_index,
pnat_attachment_point_t  attachment 
)
static

Definition at line 146 of file pnat.c.

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

◆ pnat_enable()

static void pnat_enable ( void  )
static

Definition at line 222 of file pnat.c.

+ Here is the caller graph for this function:

◆ pnat_enable_interface()

static clib_error_t* pnat_enable_interface ( u32  sw_if_index,
pnat_attachment_point_t  attachment,
pnat_mask_t  mask 
)
static

Definition at line 73 of file pnat.c.

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

◆ pnat_flow_lookup()

u32 pnat_flow_lookup ( u32  sw_if_index,
pnat_attachment_point_t  attachment,
pnat_match_tuple_t match 
)

Definition at line 310 of file pnat.c.

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

◆ pnat_instructions_from_mask()

pnat_instructions_t pnat_instructions_from_mask ( pnat_mask_t  m)

Definition at line 200 of file pnat.c.

+ Here is the caller graph for this function:

◆ pnat_interface_by_sw_if_index()

pnat_interface_t* pnat_interface_by_sw_if_index ( u32  sw_if_index)

Definition at line 38 of file pnat.c.

◆ pnat_interface_check_mask()

static int pnat_interface_check_mask ( u32  sw_if_index,
pnat_attachment_point_t  attachment,
pnat_mask_t  mask 
)
static

Definition at line 250 of file pnat.c.

+ Here is the caller graph for this function:

◆ pnat_mask2fast()

static pnat_mask_fast_t pnat_mask2fast ( pnat_mask_t  lookup_mask)
static

Definition at line 52 of file pnat.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ pnat_main

pnat_main_t pnat_main

Definition at line 32 of file pnat.c.