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

Go to the source code of this file.

Functions

static int ipsec_policy_is_equal (ipsec_policy_t *p1, ipsec_policy_t *p2)
 
static int ipsec_spd_entry_sort (void *a1, void *a2)
 
int ipsec_policy_mk_type (bool is_outbound, bool is_ipv6, ipsec_policy_action_t action, ipsec_spd_policy_type_t *type)
 
int ipsec_add_del_policy (vlib_main_t *vm, ipsec_policy_t *policy, int is_add, u32 *stat_index)
 Add/Delete a SPD. More...
 

Variables

vlib_combined_counter_main_t ipsec_spd_policy_counters
 Policy packet & bytes counters. More...
 

Function Documentation

◆ ipsec_add_del_policy()

int ipsec_add_del_policy ( vlib_main_t vm,
ipsec_policy_t policy,
int  is_add,
u32 stat_index 
)

Add/Delete a SPD.

Definition at line 136 of file ipsec_spd_policy.c.

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

◆ ipsec_policy_is_equal()

static int ipsec_policy_is_equal ( ipsec_policy_t p1,
ipsec_policy_t p2 
)
static

Definition at line 28 of file ipsec_spd_policy.c.

+ Here is the caller graph for this function:

◆ ipsec_policy_mk_type()

int ipsec_policy_mk_type ( bool  is_outbound,
bool  is_ipv6,
ipsec_policy_action_t  action,
ipsec_spd_policy_type_t type 
)

Definition at line 100 of file ipsec_spd_policy.c.

+ Here is the caller graph for this function:

◆ ipsec_spd_entry_sort()

static int ipsec_spd_entry_sort ( void *  a1,
void *  a2 
)
static

Definition at line 84 of file ipsec_spd_policy.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ ipsec_spd_policy_counters

vlib_combined_counter_main_t ipsec_spd_policy_counters
Initial value:
= {
.name = "policy",
.stat_segment_name = "/net/ipsec/policy",
}

Policy packet & bytes counters.

Definition at line 22 of file ipsec_spd_policy.c.