FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
ipsec_if.c File Reference
+ Include dependency graph for ipsec_if.c:

Go to the source code of this file.

Data Structures

struct  ipsec_if_tx_trace_t
 

Macros

#define foreach_ipsec_if_tx_error   _(TX, "good packets transmitted")
 

Enumerations

enum  ipsec_if_tx_error_t { IPSEC_IF_TX_N_ERROR }
 

Functions

void vl_api_rpc_call_main_thread (void *fp, u8 *data, u32 data_length)
 
static u8format_ipsec_name (u8 *s, va_list *args)
 
u8format_ipsec_if_tx_trace (u8 *s, va_list *args)
 
static uword ipsec_if_tx_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
 
static clib_error_tipsec_admin_up_down_function (vnet_main_t *vnm, u32 hw_if_index, u32 flags)
 
 VNET_DEVICE_CLASS (ipsec_device_class, static)
 
 VNET_HW_INTERFACE_CLASS (ipsec_hw_class)
 
static int ipsec_add_del_tunnel_if_rpc_callback (ipsec_add_del_tunnel_args_t *a)
 
int ipsec_add_del_tunnel_if (ipsec_add_del_tunnel_args_t *args)
 
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_ipsec_gre_tunnel (vnet_main_t *vnm, ipsec_add_del_ipsec_gre_tunnel_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)
 
clib_error_tipsec_tunnel_if_init (vlib_main_t *vm)
 

Variables

static char * ipsec_if_tx_error_strings []
 

Macro Definition Documentation

◆ foreach_ipsec_if_tx_error

#define foreach_ipsec_if_tx_error   _(TX, "good packets transmitted")

Definition at line 39 of file ipsec_if.c.

Enumeration Type Documentation

◆ ipsec_if_tx_error_t

Enumerator
IPSEC_IF_TX_N_ERROR 

Definition at line 48 of file ipsec_if.c.

Function Documentation

◆ format_ipsec_if_tx_trace()

u8* format_ipsec_if_tx_trace ( u8 s,
va_list *  args 
)

Definition at line 63 of file ipsec_if.c.

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

◆ format_ipsec_name()

static u8* format_ipsec_name ( u8 s,
va_list *  args 
)
static

Definition at line 29 of file ipsec_if.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,
ipsec_add_del_ipsec_gre_tunnel_args_t args 
)

Definition at line 416 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 246 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 254 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_rpc_callback()

static int ipsec_add_del_tunnel_if_rpc_callback ( ipsec_add_del_tunnel_args_t a)
static

Definition at line 237 of file ipsec_if.c.

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

◆ ipsec_admin_up_down_function()

static clib_error_t* ipsec_admin_up_down_function ( vnet_main_t vnm,
u32  hw_if_index,
u32  flags 
)
static

Definition at line 161 of file ipsec_if.c.

+ Here is the call graph for this function:

◆ ipsec_if_tx_node_fn()

static uword ipsec_if_tx_node_fn ( vlib_main_t vm,
vlib_node_runtime_t node,
vlib_frame_t from_frame 
)
static

Definition at line 74 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 478 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 528 of file ipsec_if.c.

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

◆ ipsec_tunnel_if_init()

clib_error_t* ipsec_tunnel_if_init ( vlib_main_t vm)

Definition at line 603 of file ipsec_if.c.

+ Here is the caller graph for this function:

◆ vl_api_rpc_call_main_thread()

void vl_api_rpc_call_main_thread ( void *  fp,
u8 data,
u32  data_length 
)

Definition at line 623 of file vlib_api.c.

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

◆ VNET_DEVICE_CLASS()

VNET_DEVICE_CLASS ( ipsec_device_class  ,
static   
)
+ Here is the caller graph for this function:

◆ VNET_HW_INTERFACE_CLASS()

VNET_HW_INTERFACE_CLASS ( ipsec_hw_class  )
+ Here is the caller graph for this function:

Variable Documentation

◆ ipsec_if_tx_error_strings

char* ipsec_if_tx_error_strings[]
static
Initial value:
= {
#define _(sym,string)
}
#define foreach_ipsec_if_tx_error
Definition: ipsec_if.c:39

Definition at line 42 of file ipsec_if.c.