FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
l2tp_api.c File Reference
+ Include dependency graph for l2tp_api.c:

Go to the source code of this file.

Macros

#define vl_typedefs   /* define message structures */
 
#define vl_endianfun   /* define message structures */
 
#define vl_print(handle, ...)   vlib_cli_output (handle, __VA_ARGS__)
 
#define vl_printfun
 
#define foreach_vpe_api_msg
 
#define vl_msg_name_crc_list
 

Functions

static void send_sw_if_l2tpv3_tunnel_details (vpe_api_main_t *am, vl_api_registration_t *reg, l2t_session_t *s, l2t_main_t *lm, u32 context)
 
static void vl_api_sw_if_l2tpv3_tunnel_dump_t_handler (vl_api_sw_if_l2tpv3_tunnel_dump_t *mp)
 
static void vl_api_l2tpv3_create_tunnel_t_handler (vl_api_l2tpv3_create_tunnel_t *mp)
 
static void vl_api_l2tpv3_set_tunnel_cookies_t_handler (vl_api_l2tpv3_set_tunnel_cookies_t *mp)
 
static void vl_api_l2tpv3_interface_enable_disable_t_handler (vl_api_l2tpv3_interface_enable_disable_t *mp)
 
static void vl_api_l2tpv3_set_lookup_key_t_handler (vl_api_l2tpv3_set_lookup_key_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static clib_error_tl2tp_api_hookup (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (l2tp_api_hookup)
 

Macro Definition Documentation

◆ foreach_vpe_api_msg

#define foreach_vpe_api_msg
Value:
_(L2TPV3_CREATE_TUNNEL, l2tpv3_create_tunnel) \
_(L2TPV3_SET_TUNNEL_COOKIES, l2tpv3_set_tunnel_cookies) \
_(L2TPV3_INTERFACE_ENABLE_DISABLE, l2tpv3_interface_enable_disable) \
_(L2TPV3_SET_LOOKUP_KEY, l2tpv3_set_lookup_key) \
_(SW_IF_L2TPV3_TUNNEL_DUMP, sw_if_l2tpv3_tunnel_dump)
int l2tpv3_interface_enable_disable(vnet_main_t *vnm, u32 sw_if_index, int enable_disable)
Definition: l2tp.c:614
int l2tpv3_set_tunnel_cookies(l2t_main_t *lm, u32 sw_if_index, u64 new_local_cookie, u64 new_remote_cookie)
Definition: l2tp.c:531

Definition at line 46 of file l2tp_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 34 of file l2tp_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 230 of file l2tp_api.c.

◆ vl_print

#define vl_print (   handle,
  ... 
)    vlib_cli_output (handle, __VA_ARGS__)

Definition at line 39 of file l2tp_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 40 of file l2tp_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 30 of file l2tp_api.c.

Function Documentation

◆ l2tp_api_hookup()

static clib_error_t* l2tp_api_hookup ( vlib_main_t vm)
static

Definition at line 243 of file l2tp_api.c.

+ Here is the call graph for this function:

◆ send_sw_if_l2tpv3_tunnel_details()

static void send_sw_if_l2tpv3_tunnel_details ( vpe_api_main_t am,
vl_api_registration_t reg,
l2t_session_t s,
l2t_main_t lm,
u32  context 
)
static

Definition at line 54 of file l2tp_api.c.

+ Here is the call graph for this function:

◆ setup_message_id_table()

static void setup_message_id_table ( api_main_t am)
static

Definition at line 235 of file l2tp_api.c.

+ Here is the caller graph for this function:

◆ vl_api_l2tpv3_create_tunnel_t_handler()

static void vl_api_l2tpv3_create_tunnel_t_handler ( vl_api_l2tpv3_create_tunnel_t mp)
static

Definition at line 112 of file l2tp_api.c.

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

◆ vl_api_l2tpv3_interface_enable_disable_t_handler()

static void vl_api_l2tpv3_interface_enable_disable_t_handler ( vl_api_l2tpv3_interface_enable_disable_t mp)
static

Definition at line 188 of file l2tp_api.c.

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

◆ vl_api_l2tpv3_set_lookup_key_t_handler()

static void vl_api_l2tpv3_set_lookup_key_t_handler ( vl_api_l2tpv3_set_lookup_key_t mp)
static

Definition at line 205 of file l2tp_api.c.

+ Here is the caller graph for this function:

◆ vl_api_l2tpv3_set_tunnel_cookies_t_handler()

static void vl_api_l2tpv3_set_tunnel_cookies_t_handler ( vl_api_l2tpv3_set_tunnel_cookies_t mp)
static

Definition at line 169 of file l2tp_api.c.

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

◆ vl_api_sw_if_l2tpv3_tunnel_dump_t_handler()

static void vl_api_sw_if_l2tpv3_tunnel_dump_t_handler ( vl_api_sw_if_l2tpv3_tunnel_dump_t mp)
static

Definition at line 91 of file l2tp_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

VLIB_API_INIT_FUNCTION ( l2tp_api_hookup  )
+ Here is the caller graph for this function: