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",
vlib_log_class_t vlib_log_register_class(char *class, char *subclass)
#define GBP_SCANNER_DBG(...)
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...
static uword * vlib_process_wait_for_event(vlib_main_t *vm)
#define vec_reset_length(v)
Reset vector length to zero NULL-pointer tolerant.
#define VLIB_INIT_FUNCTION(x)
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...
vlib_log_class_t gs_logger
Scanner logger.
static uword gbp_scanner(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
void gbp_endpoint_scan(vlib_main_t *vm)
vlib_node_registration_t gbp_scanner_node
(constructor) VLIB_REGISTER_NODE (gbp_scanner_node)
#define VLIB_REGISTER_NODE(x,...)
static clib_error_t * gbp_scanner_init(vlib_main_t *vm)
#define VLIB_CLI_COMMAND(x,...)
void vlib_cli_output(vlib_main_t *vm, char *fmt,...)
static bool gs_enabled
Scanner state.
static clib_error_t * gbp_scanner_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)