FD.io VPP  v21.01.1
Vector Packet Processing
cdp.c File Reference
+ Include dependency graph for cdp.c:

Go to the source code of this file.

Macros

#define REPLY_MSG_ID_BASE   cm->msg_id_base
 

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_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

◆ REPLY_MSG_ID_BASE

#define REPLY_MSG_ID_BASE   cm->msg_id_base

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 58 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 36 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 113 of file cdp.c.

+ Here is the call 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 100 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:58

(constructor) VLIB_CLI_COMMAND (cdp_command)

Definition at line 90 of file cdp.c.