FD.io VPP  v18.07.1-19-g511ce25
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

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

Definition at line 38 of file ipsec_if.c.

Enumeration Type Documentation

Enumerator
IPSEC_IF_TX_N_ERROR 

Definition at line 47 of file ipsec_if.c.

Function Documentation

u8* format_ipsec_if_tx_trace ( u8 s,
va_list *  args 
)

Definition at line 62 of file ipsec_if.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 28 of file ipsec_if.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ipsec_add_del_ipsec_gre_tunnel ( vnet_main_t vnm,
ipsec_add_del_ipsec_gre_tunnel_args_t args 
)

Definition at line 422 of file ipsec_if.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ipsec_add_del_tunnel_if ( ipsec_add_del_tunnel_args_t args)

Definition at line 263 of file ipsec_if.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 271 of file ipsec_if.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int ipsec_add_del_tunnel_if_rpc_callback ( ipsec_add_del_tunnel_args_t a)
static

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:

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

Definition at line 160 of file ipsec_if.c.

+ Here is the call graph for this function:

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 73 of file ipsec_if.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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 484 of file ipsec_if.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 534 of file ipsec_if.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

clib_error_t* ipsec_tunnel_if_init ( vlib_main_t vm)

Definition at line 613 of file ipsec_if.c.

+ Here is the caller graph for this function:

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

Definition at line 638 of file vlib_api.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

VNET_DEVICE_CLASS ( ipsec_device_class  ,
static   
)

+ Here is the caller graph for this function:

VNET_HW_INTERFACE_CLASS ( ipsec_hw_class  )

+ Here is the caller graph for this function:

Variable Documentation

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

Definition at line 41 of file ipsec_if.c.