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

Go to the source code of this file.

Data Structures

struct  ipsec_tunnel_if_t
 
struct  ipsec_add_del_tunnel_args_t
 
struct  ipsec_gre_tunnel_add_del_args_t
 

Enumerations

enum  ipsec_if_set_key_type_t {
  IPSEC_IF_SET_KEY_TYPE_NONE, IPSEC_IF_SET_KEY_TYPE_LOCAL_CRYPTO, IPSEC_IF_SET_KEY_TYPE_REMOTE_CRYPTO, IPSEC_IF_SET_KEY_TYPE_LOCAL_INTEG,
  IPSEC_IF_SET_KEY_TYPE_REMOTE_INTEG
}
 

Functions

typedef CLIB_PACKED (struct { union { struct { u32 remote_ip;u32 spi;};u64 as_u64;};}) ipsec4_tunnel_key_t
 
typedef CLIB_PACKED (struct { ip6_address_t remote_ip;u32 spi;}) ipsec6_tunnel_key_t
 
int ipsec_add_del_tunnel_if_internal (vnet_main_t *vnm, ipsec_add_del_tunnel_args_t *args, u32 *sw_if_index)
 
int ipsec_add_del_tunnel_if (ipsec_add_del_tunnel_args_t *args)
 
int ipsec_add_del_ipsec_gre_tunnel (vnet_main_t *vnm, const ipsec_gre_tunnel_add_del_args_t *args)
 
int ipsec_set_interface_key (vnet_main_t *vnm, u32 hw_if_index, ipsec_if_set_key_type_t type, u8 alg, u8 *key)
 
int ipsec_set_interface_sa (vnet_main_t *vnm, u32 hw_if_index, u32 sa_id, u8 is_outbound)
 
u8format_ipsec_tunnel (u8 *s, va_list *args)
 

Enumeration Type Documentation

◆ ipsec_if_set_key_type_t

Enumerator
IPSEC_IF_SET_KEY_TYPE_NONE 
IPSEC_IF_SET_KEY_TYPE_LOCAL_CRYPTO 
IPSEC_IF_SET_KEY_TYPE_REMOTE_CRYPTO 
IPSEC_IF_SET_KEY_TYPE_LOCAL_INTEG 
IPSEC_IF_SET_KEY_TYPE_REMOTE_INTEG 

Definition at line 20 of file ipsec_if.h.

Function Documentation

◆ CLIB_PACKED() [1/2]

typedef CLIB_PACKED ( struct { union { struct { u32 remote_ip;u32 spi;};u64 as_u64;};}  )

◆ CLIB_PACKED() [2/2]

typedef CLIB_PACKED ( struct { ip6_address_t remote_ip;u32 spi;}  )

◆ format_ipsec_tunnel()

u8* format_ipsec_tunnel ( u8 s,
va_list *  args 
)

Definition at line 336 of file ipsec_format.c.

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

◆ ipsec_add_del_ipsec_gre_tunnel()

int ipsec_add_del_ipsec_gre_tunnel ( vnet_main_t vnm,
const ipsec_gre_tunnel_add_del_args_t args 
)

Definition at line 437 of file ipsec_if.c.

+ Here is the call graph for this function:

◆ ipsec_add_del_tunnel_if()

int ipsec_add_del_tunnel_if ( ipsec_add_del_tunnel_args_t args)

Definition at line 214 of file ipsec_if.c.

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

◆ ipsec_add_del_tunnel_if_internal()

int ipsec_add_del_tunnel_if_internal ( vnet_main_t vnm,
ipsec_add_del_tunnel_args_t args,
u32 sw_if_index 
)

Definition at line 256 of file ipsec_if.c.

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

◆ ipsec_set_interface_key()

int ipsec_set_interface_key ( vnet_main_t vnm,
u32  hw_if_index,
ipsec_if_set_key_type_t  type,
u8  alg,
u8 key 
)

Definition at line 517 of file ipsec_if.c.

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

◆ ipsec_set_interface_sa()

int ipsec_set_interface_sa ( vnet_main_t vnm,
u32  hw_if_index,
u32  sa_id,
u8  is_outbound 
)

Definition at line 563 of file ipsec_if.c.

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