|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
32 #define GBP_SCANNER_DBG(...) \
33 vlib_log_debug (gs_logger, __VA_ARGS__);
38 uword event_type, *event_data = 0;
92 .name =
"gbp-scanner",
114 .path =
"show gbp scanner",
115 .short_help =
"show gbp scanner",
#define vec_reset_length(v)
Reset vector length to zero NULL-pointer tolerant.
vlib_log_class_t gs_logger
Scanner logger.
static uword * vlib_process_wait_for_event(vlib_main_t *vm)
static uword gbp_scanner(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
vlib_log_class_t vlib_log_register_class(char *class, char *subclass)
static vlib_cli_command_t gbp_scanner_cli_node
(constructor) VLIB_CLI_COMMAND (gbp_scanner_cli_node)
vlib_node_registration_t gbp_scanner_node
(constructor) VLIB_REGISTER_NODE (gbp_scanner_node)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
static uword vlib_process_get_events(vlib_main_t *vm, uword **data_vector)
Return the first event type which has occurred and a vector of per-event data of that type,...
static bool gs_enabled
Scanner state.
void gbp_endpoint_scan(vlib_main_t *vm)
#define GBP_SCANNER_DBG(...)
static clib_error_t * gbp_scanner_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
#define VLIB_CLI_COMMAND(x,...)
struct _vlib_node_registration vlib_node_registration_t
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
@ GBP_ENDPOINT_SCAN_START
static f64 vlib_process_wait_for_event_or_clock(vlib_main_t *vm, f64 dt)
Suspend a cooperative multi-tasking thread Waits for an event, or for the indicated number of seconds...
#define VLIB_INIT_FUNCTION(x)
vnet_interface_output_runtime_t * rt
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
@ GBP_ENDPOINT_SCAN_SET_TIME
static clib_error_t * gbp_scanner_init(vlib_main_t *vm)
#define VLIB_REGISTER_NODE(x,...)