FD.io VPP  v19.04.1-1-ge4a0f9f
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

#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.

#define IPSEC_POLICY_N_ACTION   (IPSEC_POLICY_ACTION_PROTECT + 1)

Definition at line 33 of file ipsec_spd_policy.h.

Typedef Documentation

A Secruity Policy.

An entry in an SPD

Enumeration Type Documentation

Enumerator
foreach_ipsec_policy_action 

Definition at line 26 of file ipsec_spd_policy.h.

Function Documentation

u8* format_ipsec_policy ( u8 s,
va_list *  args 
)

Definition at line 155 of file ipsec_format.c.

+ Here is the call graph for this function:

u8* format_ipsec_policy_action ( u8 s,
va_list *  args 
)

Definition at line 27 of file ipsec_format.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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:

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:

uword unformat_ipsec_policy_action ( unformat_input_t input,
va_list *  args 
)

Definition at line 63 of file ipsec_format.c.

+ Here is the caller graph for this function:

Variable Documentation

vlib_combined_counter_main_t ipsec_spd_policy_counters

Policy packet & bytes counters.

Definition at line 22 of file ipsec_spd_policy.c.