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

Go to the source code of this file.

Data Structures

struct  l2_emulation_main_t_
 Grouping of global data for the L2 emulation feature. More...
 

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 vl_api_version(n, v)   static u32 api_version=(v);
 
#define foreach_l2e_api_msg   _(L2_EMULATION, l2_emulation)
 
#define L2E_MSG_BASE   l2_emulation_main.msg_id_base
 
#define vl_msg_name_crc_list
 

Typedefs

typedef struct l2_emulation_main_t_ l2_emulation_main_t
 L2 Emulation Main. More...
 

Functions

static void vl_api_l2_emulation_t_handler (vl_api_l2_emulation_t *mp)
 
static void setup_message_id_table (api_main_t *am)
 
static void l2e_api_hookup (vlib_main_t *vm)
 
static clib_error_tl2e_init (vlib_main_t *vm)
 
 VLIB_API_INIT_FUNCTION (l2e_init)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

static l2_emulation_main_t l2_emulation_main
 

Macro Definition Documentation

◆ foreach_l2e_api_msg

#define foreach_l2e_api_msg   _(L2_EMULATION, l2_emulation)

Definition at line 56 of file l2e_api.c.

◆ L2E_MSG_BASE

#define L2E_MSG_BASE   l2_emulation_main.msg_id_base

Definition at line 69 of file l2e_api.c.

◆ vl_api_version

#define vl_api_version (   n,
 
)    static u32 api_version=(v);

Definition at line 50 of file l2e_api.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 39 of file l2e_api.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 98 of file l2e_api.c.

◆ vl_print

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

Definition at line 44 of file l2e_api.c.

◆ vl_printfun

#define vl_printfun

Definition at line 45 of file l2e_api.c.

◆ vl_typedefs

#define vl_typedefs   /* define message structures */

Definition at line 35 of file l2e_api.c.

Typedef Documentation

◆ l2_emulation_main_t

L2 Emulation Main.

Function Documentation

◆ l2e_api_hookup()

static void l2e_api_hookup ( vlib_main_t vm)
static

Definition at line 112 of file l2e_api.c.

+ Here is the caller graph for this function:

◆ l2e_init()

static clib_error_t* l2e_init ( vlib_main_t vm)
static

Definition at line 127 of file l2e_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 103 of file l2e_api.c.

+ Here is the caller graph for this function:

◆ vl_api_l2_emulation_t_handler()

static void vl_api_l2_emulation_t_handler ( vl_api_l2_emulation_t mp)
static

Definition at line 72 of file l2e_api.c.

+ Here is the call graph for this function:

◆ VLIB_API_INIT_FUNCTION()

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

◆ VLIB_PLUGIN_REGISTER()

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

Variable Documentation

◆ l2_emulation_main

l2_emulation_main_t l2_emulation_main
static

Definition at line 67 of file l2e_api.c.