FD.io VPP  v20.05-21-gb1500e9ff
Vector Packet Processing
ipsec_spd_policy.h File Reference
+ Include dependency graph for ipsec_spd_policy.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ip46_address_range_t
 
struct  port_range_t
 
struct  ipsec_policy_t_
 A Secruity Policy. More...
 

Macros

#define foreach_ipsec_policy_action
 
#define IPSEC_POLICY_N_ACTION   (IPSEC_POLICY_ACTION_PROTECT + 1)
 

Typedefs

typedef struct ipsec_policy_t_ ipsec_policy_t
 A Secruity Policy. More...
 

Enumerations

enum  ipsec_policy_action_t { foreach_ipsec_policy_action }
 

Functions

int ipsec_add_del_policy (vlib_main_t *vm, ipsec_policy_t *policy, int is_add, u32 *stat_index)
 Add/Delete a SPD. More...
 
u8format_ipsec_policy (u8 *s, va_list *args)
 
u8format_ipsec_policy_action (u8 *s, va_list *args)
 
uword unformat_ipsec_policy_action (unformat_input_t *input, va_list *args)
 
int ipsec_policy_mk_type (bool is_outbound, bool is_ipv6, ipsec_policy_action_t action, ipsec_spd_policy_type_t *type)
 

Variables

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

Macro Definition Documentation

◆ foreach_ipsec_policy_action

#define foreach_ipsec_policy_action
Value:
_ (0, BYPASS, "bypass") \
_ (1, DISCARD, "discard") \
_ (2, RESOLVE, "resolve") \
_ (3, PROTECT, "protect")

Definition at line 20 of file ipsec_spd_policy.h.

◆ IPSEC_POLICY_N_ACTION

#define IPSEC_POLICY_N_ACTION   (IPSEC_POLICY_ACTION_PROTECT + 1)

Definition at line 33 of file ipsec_spd_policy.h.

Typedef Documentation

◆ ipsec_policy_t

A Secruity Policy.

An entry in an SPD

Enumeration Type Documentation

◆ ipsec_policy_action_t

Enumerator
foreach_ipsec_policy_action 

Definition at line 26 of file ipsec_spd_policy.h.

Function Documentation

◆ format_ipsec_policy()

u8* format_ipsec_policy ( u8 s,
va_list *  args 
)

Definition at line 156 of file ipsec_format.c.

+ Here is the call graph for this function:

◆ format_ipsec_policy_action()

u8* format_ipsec_policy_action ( u8 s,
va_list *  args 
)

Definition at line 28 of file ipsec_format.c.

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

◆ 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 140 of file ipsec_spd_policy.c.

+ Here is the call graph for this function:
+ 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:

◆ unformat_ipsec_policy_action()

uword unformat_ipsec_policy_action ( unformat_input_t input,
va_list *  args 
)

Definition at line 64 of file ipsec_format.c.

+ Here is the caller graph for this function:

Variable Documentation

◆ ipsec_spd_policy_counters

vlib_combined_counter_main_t ipsec_spd_policy_counters

Policy packet & bytes counters.

Definition at line 22 of file ipsec_spd_policy.c.