|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
24 #include <vpp/app/version.h>
27 #include <cdp/cdp.api_enum.h>
28 #include <cdp/cdp.api_types.h>
30 #define REPLY_MSG_ID_BASE cm->msg_id_base
52 cm->enabled = enable_disable;
62 int enable_disable = 1;
93 .short_help =
"cdp enable | disable",
102 vl_api_cdp_enable_disable_reply_t *rmp;
111 #include <cdp/cdp.api.c>
130 .version = VPP_BUILD_VER,
131 .description =
"Cisco Discovery Protocol (CDP)",
#define clib_error_return(e, args...)
int cdp_enable_disable(cdp_main_t *cm, int enable_disable)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static vlib_cli_command_t cdp_command
(constructor) VLIB_CLI_COMMAND (cdp_command)
static void vlib_process_signal_event(vlib_main_t *vm, uword node_index, uword type_opaque, uword data)
static clib_error_t * cdp_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static void setup_message_id_table(api_main_t *am)
static clib_error_t * cdp_init(vlib_main_t *vm)
vnet_feature_config_main_t * cm
static void vl_api_cdp_enable_disable_t_handler(vl_api_cdp_enable_disable_t *mp)
#define VLIB_CLI_COMMAND(x,...)
#define VLIB_INIT_FUNCTION(x)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
void vnet_cdp_create_periodic_process(cdp_main_t *cmp)