FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
ipsec_spd.h File Reference
+ Include dependency graph for ipsec_spd.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ipsec_spd_t
 A Secruity Policy Database. More...
 

Macros

#define foreach_ipsec_spd_policy_type
 
#define FOR_EACH_IPSEC_SPD_POLICY_TYPE(_t)   for (_t = 0; _t < IPSEC_SPD_POLICY_N_TYPES; _t++)
 

Typedefs

typedef enum ipsec_spd_policy_t_ ipsec_spd_policy_type_t
 

Enumerations

enum  ipsec_spd_policy_t_ { IPSEC_SPD_POLICY_N_TYPES }
 

Functions

u8format_ipsec_policy_type (u8 *s, va_list *args)
 
int ipsec_add_del_spd (vlib_main_t *vm, u32 spd_id, int is_add)
 Add/Delete a SPD. More...
 
int ipsec_set_interface_spd (vlib_main_t *vm, u32 sw_if_index, u32 spd_id, int is_add)
 Bind/attach a SPD to an interface. More...
 
u8format_ipsec_spd (u8 *s, va_list *args)
 

Macro Definition Documentation

◆ FOR_EACH_IPSEC_SPD_POLICY_TYPE

#define FOR_EACH_IPSEC_SPD_POLICY_TYPE (   _t)    for (_t = 0; _t < IPSEC_SPD_POLICY_N_TYPES; _t++)

Definition at line 36 of file ipsec_spd.h.

◆ foreach_ipsec_spd_policy_type

#define foreach_ipsec_spd_policy_type
Value:
_(IP4_OUTBOUND, "ip4-outbound") \
_(IP6_OUTBOUND, "ip6-outbound") \
_(IP4_INBOUND_PROTECT, "ip4-inbound-protect") \
_(IP6_INBOUND_PROTECT, "ip6-inbound-protect") \
_(IP4_INBOUND_BYPASS, "ip4-inbound-bypass") \
_(IP6_INBOUND_BYPASS, "ip6-inbound-bypass")

Definition at line 20 of file ipsec_spd.h.

Typedef Documentation

◆ ipsec_spd_policy_type_t

Enumeration Type Documentation

◆ ipsec_spd_policy_t_

Enumerator
IPSEC_SPD_POLICY_N_TYPES 

Definition at line 28 of file ipsec_spd.h.

Function Documentation

◆ format_ipsec_policy_type()

u8* format_ipsec_policy_type ( u8 s,
va_list *  args 
)

Definition at line 45 of file ipsec_format.c.

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

◆ format_ipsec_spd()

u8* format_ipsec_spd ( u8 s,
va_list *  args 
)

Definition at line 202 of file ipsec_format.c.

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

◆ ipsec_add_del_spd()

int ipsec_add_del_spd ( vlib_main_t vm,
u32  spd_id,
int  is_add 
)

Add/Delete a SPD.

Definition at line 20 of file ipsec_spd.c.

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

◆ ipsec_set_interface_spd()

int ipsec_set_interface_spd ( vlib_main_t vm,
u32  sw_if_index,
u32  spd_id,
int  is_add 
)

Bind/attach a SPD to an interface.

Definition at line 63 of file ipsec_spd.c.

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