FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
cli.c File Reference
+ Include dependency graph for cli.c:

Go to the source code of this file.

Functions

static u8format_snort_instance (u8 *s, va_list *args)
 
static clib_error_tsnort_create_instance_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnort_attach_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnort_detach_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnort_show_instances_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnort_show_interfaces_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnort_show_clients_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnort_mode_polling_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnort_mode_interrupt_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tsnort_show_mode_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 

Variables

static vlib_cli_command_t snort_create_instance_command
 (constructor) VLIB_CLI_COMMAND (snort_create_instance_command) More...
 
static vlib_cli_command_t snort_attach_command
 (constructor) VLIB_CLI_COMMAND (snort_attach_command) More...
 
static vlib_cli_command_t snort_detach_command
 (constructor) VLIB_CLI_COMMAND (snort_detach_command) More...
 
static vlib_cli_command_t snort_show_instances_command
 (constructor) VLIB_CLI_COMMAND (snort_show_instances_command) More...
 
static vlib_cli_command_t snort_show_interfaces_command
 (constructor) VLIB_CLI_COMMAND (snort_show_interfaces_command) More...
 
static vlib_cli_command_t snort_show_clients_command
 (constructor) VLIB_CLI_COMMAND (snort_show_clients_command) More...
 
static vlib_cli_command_t snort_mode_polling_command
 (constructor) VLIB_CLI_COMMAND (snort_mode_polling_command) More...
 
static vlib_cli_command_t snort_mode_interrupt_command
 (constructor) VLIB_CLI_COMMAND (snort_mode_interrupt_command) More...
 
static vlib_cli_command_t snort_show_mode_command
 (constructor) VLIB_CLI_COMMAND (snort_show_mode_command) More...
 

Function Documentation

◆ format_snort_instance()

static u8* format_snort_instance ( u8 s,
va_list *  args 
)
static

Definition at line 10 of file cli.c.

+ Here is the caller graph for this function:

◆ snort_attach_command_fn()

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

Definition at line 80 of file cli.c.

+ Here is the call graph for this function:

◆ snort_create_instance_command_fn()

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

Definition at line 20 of file cli.c.

+ Here is the call graph for this function:

◆ snort_detach_command_fn()

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

Definition at line 135 of file cli.c.

+ Here is the call graph for this function:

◆ snort_mode_interrupt_command_fn()

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

Definition at line 249 of file cli.c.

+ Here is the call graph for this function:

◆ snort_mode_polling_command_fn()

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

Definition at line 242 of file cli.c.

+ Here is the call graph for this function:

◆ snort_show_clients_command_fn()

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

Definition at line 227 of file cli.c.

+ Here is the call graph for this function:

◆ snort_show_instances_command_fn()

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

Definition at line 180 of file cli.c.

+ Here is the call graph for this function:

◆ snort_show_interfaces_command_fn()

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

Definition at line 199 of file cli.c.

+ Here is the call graph for this function:

◆ snort_show_mode_command_fn()

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

Definition at line 268 of file cli.c.

+ Here is the call graph for this function:

Variable Documentation

◆ snort_attach_command

vlib_cli_command_t snort_attach_command
static
Initial value:
= {
.path = "snort attach",
.short_help = "snort attach instance <name> interface <if-name>",
}

(constructor) VLIB_CLI_COMMAND (snort_attach_command)

Definition at line 128 of file cli.c.

◆ snort_create_instance_command

vlib_cli_command_t snort_create_instance_command
static
Initial value:
= {
.path = "snort create-instance",
.short_help = "snort create-instaince name <name> [queue-size <size>] "
"[on-disconnect drop|pass]",
}

(constructor) VLIB_CLI_COMMAND (snort_create_instance_command)

Definition at line 72 of file cli.c.

◆ snort_detach_command

vlib_cli_command_t snort_detach_command
static
Initial value:
= {
.path = "snort detach",
.short_help = "snort detach interface <if-name>",
}

(constructor) VLIB_CLI_COMMAND (snort_detach_command)

Definition at line 173 of file cli.c.

◆ snort_mode_interrupt_command

vlib_cli_command_t snort_mode_interrupt_command
static
Initial value:
= {
.path = "snort mode interrupt",
.short_help = "snort mode polling|interrupt",
}

(constructor) VLIB_CLI_COMMAND (snort_mode_interrupt_command)

Definition at line 261 of file cli.c.

◆ snort_mode_polling_command

vlib_cli_command_t snort_mode_polling_command
static
Initial value:
= {
.path = "snort mode polling",
.short_help = "snort mode polling|interrupt",
}

(constructor) VLIB_CLI_COMMAND (snort_mode_polling_command)

Definition at line 255 of file cli.c.

◆ snort_show_clients_command

vlib_cli_command_t snort_show_clients_command
static
Initial value:
= {
.path = "show snort clients",
.short_help = "show snort clients",
}

(constructor) VLIB_CLI_COMMAND (snort_show_clients_command)

Definition at line 235 of file cli.c.

◆ snort_show_instances_command

vlib_cli_command_t snort_show_instances_command
static
Initial value:
= {
.path = "show snort instances",
.short_help = "show snort instances",
}

(constructor) VLIB_CLI_COMMAND (snort_show_instances_command)

Definition at line 192 of file cli.c.

◆ snort_show_interfaces_command

vlib_cli_command_t snort_show_interfaces_command
static
Initial value:
= {
.path = "show snort interfaces",
.short_help = "show snort interfaces",
}

(constructor) VLIB_CLI_COMMAND (snort_show_interfaces_command)

Definition at line 220 of file cli.c.

◆ snort_show_mode_command

vlib_cli_command_t snort_show_mode_command
static
Initial value:
= {
.path = "show snort mode",
.short_help = "show snort mode",
}

(constructor) VLIB_CLI_COMMAND (snort_show_mode_command)

Definition at line 278 of file cli.c.

snort_show_interfaces_command_fn
static clib_error_t * snort_show_interfaces_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:199
snort_show_instances_command_fn
static clib_error_t * snort_show_instances_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:180
snort_show_mode_command_fn
static clib_error_t * snort_show_mode_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:268
snort_mode_polling_command_fn
static clib_error_t * snort_mode_polling_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:242
snort_create_instance_command_fn
static clib_error_t * snort_create_instance_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:20
snort_detach_command_fn
static clib_error_t * snort_detach_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:135
snort_show_clients_command_fn
static clib_error_t * snort_show_clients_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:227
snort_mode_interrupt_command_fn
static clib_error_t * snort_mode_interrupt_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:249
snort_attach_command_fn
static clib_error_t * snort_attach_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: cli.c:80