FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
ipsec_tun.c File Reference
+ Include dependency graph for ipsec_tun.c:

Go to the source code of this file.

Data Structures

struct  ipsec_protect_db_t_
 DB of protected tunnels. More...
 

Typedefs

typedef struct ipsec_protect_db_t_ ipsec_protect_db_t
 DB of protected tunnels. More...
 

Functions

static void ipsec_tun_protect_feature_set (ipsec_tun_protect_t *itp, u8 enable)
 
static void ipsec_tun_protect_db_add (ipsec_main_t *im, const ipsec_tun_protect_t *itp)
 
static void ipsec_tun_protect_db_remove (ipsec_main_t *im, const ipsec_tun_protect_t *itp)
 
static void ipsec_tun_protect_config (ipsec_main_t *im, ipsec_tun_protect_t *itp, u32 sa_out, u32 *sas_in)
 
static void ipsec_tun_protect_unconfig (ipsec_main_t *im, ipsec_tun_protect_t *itp)
 
index_t ipsec_tun_protect_find (u32 sw_if_index)
 
int ipsec_tun_protect_update_one (u32 sw_if_index, u32 sa_out, u32 sa_in)
 
int ipsec_tun_protect_update_out (u32 sw_if_index, u32 sa_out)
 
int ipsec_tun_protect_update_in (u32 sw_if_index, u32 sa_in)
 
int ipsec_tun_protect_update (u32 sw_if_index, u32 sa_out, u32 *sas_in)
 
int ipsec_tun_protect_del (u32 sw_if_index)
 
void ipsec_tun_protect_walk (ipsec_tun_protect_walk_cb_t fn, void *ctx)
 
clib_error_tipsec_tunnel_protect_init (vlib_main_t *vm)
 

Variables

ipsec_tun_protect_tipsec_protect_pool
 Pool of tunnel protection objects. More...
 
static ipsec_protect_db_t ipsec_protect_db
 

Typedef Documentation

◆ ipsec_protect_db_t

DB of protected tunnels.

Function Documentation

◆ ipsec_tun_protect_config()

static void ipsec_tun_protect_config ( ipsec_main_t im,
ipsec_tun_protect_t itp,
u32  sa_out,
u32 sas_in 
)
static

Definition at line 173 of file ipsec_tun.c.

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

◆ ipsec_tun_protect_db_add()

static void ipsec_tun_protect_db_add ( ipsec_main_t im,
const ipsec_tun_protect_t itp 
)
static

Definition at line 96 of file ipsec_tun.c.

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

◆ ipsec_tun_protect_db_remove()

static void ipsec_tun_protect_db_remove ( ipsec_main_t im,
const ipsec_tun_protect_t itp 
)
static

Definition at line 140 of file ipsec_tun.c.

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

◆ ipsec_tun_protect_del()

int ipsec_tun_protect_del ( u32  sw_if_index)

Definition at line 480 of file ipsec_tun.c.

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

◆ ipsec_tun_protect_feature_set()

static void ipsec_tun_protect_feature_set ( ipsec_tun_protect_t itp,
u8  enable 
)
static

Definition at line 39 of file ipsec_tun.c.

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

◆ ipsec_tun_protect_find()

index_t ipsec_tun_protect_find ( u32  sw_if_index)

Definition at line 247 of file ipsec_tun.c.

+ Here is the caller graph for this function:

◆ ipsec_tun_protect_unconfig()

static void ipsec_tun_protect_unconfig ( ipsec_main_t im,
ipsec_tun_protect_t itp 
)
static

Definition at line 222 of file ipsec_tun.c.

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

◆ ipsec_tun_protect_update()

int ipsec_tun_protect_update ( u32  sw_if_index,
u32  sa_out,
u32 sas_in 
)

Definition at line 362 of file ipsec_tun.c.

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

◆ ipsec_tun_protect_update_in()

int ipsec_tun_protect_update_in ( u32  sw_if_index,
u32  sa_in 
)

Definition at line 318 of file ipsec_tun.c.

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

◆ ipsec_tun_protect_update_one()

int ipsec_tun_protect_update_one ( u32  sw_if_index,
u32  sa_out,
u32  sa_in 
)

Definition at line 256 of file ipsec_tun.c.

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

◆ ipsec_tun_protect_update_out()

int ipsec_tun_protect_update_out ( u32  sw_if_index,
u32  sa_out 
)

Definition at line 268 of file ipsec_tun.c.

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

◆ ipsec_tun_protect_walk()

void ipsec_tun_protect_walk ( ipsec_tun_protect_walk_cb_t  fn,
void *  ctx 
)

Definition at line 511 of file ipsec_tun.c.

+ Here is the caller graph for this function:

◆ ipsec_tunnel_protect_init()

clib_error_t* ipsec_tunnel_protect_init ( vlib_main_t vm)

Definition at line 524 of file ipsec_tun.c.

+ Here is the call graph for this function:

Variable Documentation

◆ ipsec_protect_db

ipsec_protect_db_t ipsec_protect_db
static

Definition at line 36 of file ipsec_tun.c.

◆ ipsec_protect_pool

ipsec_tun_protect_t* ipsec_protect_pool

Pool of tunnel protection objects.

Definition at line 25 of file ipsec_tun.c.