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

Go to the source code of this file.

Macros

#define vl_typedefs
 
#define vl_endianfun
 
#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 REPLY_MSG_ID_BASE   cm->msg_id_base
 
#define foreach_cdp_plugin_api_msg   _(CDP_ENABLE_DISABLE, cdp_enable_disable)
 
#define vl_msg_name_crc_list
 

Functions

int cdp_enable_disable (cdp_main_t *cm, int enable_disable)
 
static clib_error_tcdp_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static void vl_api_cdp_enable_disable_t_handler (vl_api_cdp_enable_disable_t *mp)
 
static clib_error_tcdp_plugin_api_hookup (vlib_main_t *vm)
 
static void setup_message_id_table (cdp_main_t *cm, api_main_t *am)
 
static clib_error_tcdp_init (vlib_main_t *vm)
 
 VLIB_PLUGIN_REGISTER ()
 

Variables

static vlib_cli_command_t cdp_command
 (constructor) VLIB_CLI_COMMAND (cdp_command) More...
 

Macro Definition Documentation

◆ foreach_cdp_plugin_api_msg

#define foreach_cdp_plugin_api_msg   _(CDP_ENABLE_DISABLE, cdp_enable_disable)

Definition at line 55 of file cdp.c.

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   cm->msg_id_base

Definition at line 50 of file cdp.c.

◆ vl_api_version

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

Definition at line 46 of file cdp.c.

◆ vl_endianfun

#define vl_endianfun

Definition at line 35 of file cdp.c.

◆ vl_msg_name_crc_list

#define vl_msg_name_crc_list

Definition at line 149 of file cdp.c.

◆ vl_print

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

Definition at line 40 of file cdp.c.

◆ vl_printfun

#define vl_printfun

Definition at line 41 of file cdp.c.

◆ vl_typedefs

#define vl_typedefs

Definition at line 30 of file cdp.c.

Function Documentation

◆ cdp_command_fn()

static clib_error_t* cdp_command_fn ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd 
)
static

Definition at line 77 of file cdp.c.

+ Here is the call graph for this function:

◆ cdp_enable_disable()

int cdp_enable_disable ( cdp_main_t cm,
int  enable_disable 
)

Definition at line 61 of file cdp.c.

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

◆ cdp_init()

static clib_error_t* cdp_init ( vlib_main_t vm)
static

Definition at line 162 of file cdp.c.

+ Here is the call graph for this function:

◆ cdp_plugin_api_hookup()

static clib_error_t* cdp_plugin_api_hookup ( vlib_main_t vm)
static

Definition at line 132 of file cdp.c.

+ Here is the caller graph for this function:

◆ setup_message_id_table()

static void setup_message_id_table ( cdp_main_t cm,
api_main_t am 
)
static

Definition at line 154 of file cdp.c.

+ Here is the caller graph for this function:

◆ vl_api_cdp_enable_disable_t_handler()

static void vl_api_cdp_enable_disable_t_handler ( vl_api_cdp_enable_disable_t mp)
static

Definition at line 119 of file cdp.c.

+ Here is the call graph for this function:

◆ VLIB_PLUGIN_REGISTER()

VLIB_PLUGIN_REGISTER ( )

Variable Documentation

◆ cdp_command

vlib_cli_command_t cdp_command
static
Initial value:
=
{
.path = "cdp",
.short_help = "cdp enable | disable",
.function = cdp_command_fn,
}
static clib_error_t * cdp_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cdp.c:77

(constructor) VLIB_CLI_COMMAND (cdp_command)

Definition at line 109 of file cdp.c.