FD.io VPP  v19.04.4-rc0-5-ge88582fac
Vector Packet Processing
gbp_scanner.c File Reference
+ Include dependency graph for gbp_scanner.c:

Go to the source code of this file.

Macros

#define GBP_SCANNER_DBG(...)   vlib_log_debug (gs_logger, __VA_ARGS__);
 

Functions

static uword gbp_scanner (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
 
static clib_error_tgbp_scanner_cli (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tgbp_scanner_init (vlib_main_t *vm)
 

Variables

vlib_log_class_t gs_logger
 Scanner logger. More...
 
static bool gs_enabled
 Scanner state. More...
 
vlib_node_registration_t gbp_scanner_node
 (constructor) VLIB_REGISTER_NODE (gbp_scanner_node) More...
 
static vlib_cli_command_t gbp_scanner_cli_node
 (constructor) VLIB_CLI_COMMAND (gbp_scanner_cli_node) More...
 

Macro Definition Documentation

◆ GBP_SCANNER_DBG

#define GBP_SCANNER_DBG (   ...)    vlib_log_debug (gs_logger, __VA_ARGS__);

Definition at line 32 of file gbp_scanner.c.

Function Documentation

◆ gbp_scanner()

static uword gbp_scanner ( vlib_main_t vm,
vlib_node_runtime_t rt,
vlib_frame_t f 
)
static

Definition at line 36 of file gbp_scanner.c.

+ Here is the call graph for this function:

◆ gbp_scanner_cli()

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

Definition at line 97 of file gbp_scanner.c.

+ Here is the call graph for this function:

◆ gbp_scanner_init()

static clib_error_t* gbp_scanner_init ( vlib_main_t vm)
static

Definition at line 121 of file gbp_scanner.c.

+ Here is the call graph for this function:

Variable Documentation

◆ gbp_scanner_cli_node

vlib_cli_command_t gbp_scanner_cli_node
static
Initial value:
= {
.path = "show gbp scanner",
.short_help = "show gbp scanner",
.function = gbp_scanner_cli,
}
static clib_error_t * gbp_scanner_cli(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: gbp_scanner.c:97

(constructor) VLIB_CLI_COMMAND (gbp_scanner_cli_node)

Definition at line 113 of file gbp_scanner.c.

◆ gbp_scanner_node

vlib_node_registration_t gbp_scanner_node
Initial value:
= {
.function = gbp_scanner,
.name = "gbp-scanner",
}
static uword gbp_scanner(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition: gbp_scanner.c:36

(constructor) VLIB_REGISTER_NODE (gbp_scanner_node)

Definition at line 89 of file gbp_scanner.c.

◆ gs_enabled

bool gs_enabled
static

Scanner state.

Definition at line 30 of file gbp_scanner.c.

◆ gs_logger

vlib_log_class_t gs_logger

Scanner logger.

Definition at line 25 of file gbp_scanner.c.