FD.io VPP  v18.07-34-g55fbdb9
Vector Packet Processing
flow_cli.c File Reference
+ Include dependency graph for flow_cli.c:

Go to the source code of this file.

Functions

uword unformat_ip_port_and_mask (unformat_input_t *input, va_list *args)
 
u8format_ip_port_and_mask (u8 *s, va_list *args)
 
u8format_flow_error (u8 *s, va_list *args)
 
u8format_flow_actions (u8 *s, va_list *args)
 
u8format_flow_enabled_hw (u8 *s, va_list *args)
 
static clib_error_tshow_flow_entry (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
 
static clib_error_tshow_flow_ranges (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
 
static clib_error_tshow_flow_interface (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
 
static clib_error_ttest_flow (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
 
static u8format_flow_match_element (u8 *s, va_list *args)
 
static foreach_flow_type u8format_flow_match (u8 *s, va_list *args)
 
static u8format_flow (u8 *s, va_list *args)
 

Variables

static format_function_t format_flow
 
static const char * flow_type_strings []
 
static vlib_cli_command_t show_flow_entry_command
 (constructor) VLIB_CLI_COMMAND (show_flow_entry_command) More...
 
static vlib_cli_command_t show_flow_ranges_command
 (constructor) VLIB_CLI_COMMAND (show_flow_ranges_command) More...
 
static vlib_cli_command_t show_flow_interface_command
 (constructor) VLIB_CLI_COMMAND (show_flow_interface_command) More...
 
static vlib_cli_command_t test_flow_command
 (constructor) VLIB_CLI_COMMAND (test_flow_command) More...
 

Function Documentation

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

Definition at line 451 of file flow_cli.c.

+ Here is the call graph for this function:

u8* format_flow_actions ( u8 s,
va_list *  args 
)

Definition at line 79 of file flow_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u8* format_flow_enabled_hw ( u8 s,
va_list *  args 
)

Definition at line 94 of file flow_cli.c.

+ Here is the call graph for this function:

u8* format_flow_error ( u8 s,
va_list *  args 
)

Definition at line 64 of file flow_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static foreach_flow_type u8* format_flow_match ( u8 s,
va_list *  args 
)
static

Definition at line 437 of file flow_cli.c.

+ Here is the caller graph for this function:

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

Definition at line 385 of file flow_cli.c.

+ Here is the call graph for this function:

u8* format_ip_port_and_mask ( u8 s,
va_list *  args 
)

Definition at line 50 of file flow_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* show_flow_entry ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd_arg 
)
static

Definition at line 124 of file flow_cli.c.

+ Here is the call graph for this function:

static clib_error_t* show_flow_interface ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd_arg 
)
static

Definition at line 219 of file flow_cli.c.

+ Here is the call graph for this function:

static clib_error_t* show_flow_ranges ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd_arg 
)
static

Definition at line 193 of file flow_cli.c.

+ Here is the call graph for this function:

static clib_error_t* test_flow ( vlib_main_t vm,
unformat_input_t input,
vlib_cli_command_t cmd_arg 
)
static

Definition at line 263 of file flow_cli.c.

+ Here is the call graph for this function:

uword unformat_ip_port_and_mask ( unformat_input_t input,
va_list *  args 
)

Definition at line 25 of file flow_cli.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const char* flow_type_strings[]
static
Initial value:
= { 0,
#define _(a,b,c)
}
foreach_flow_type
Definition: flow.h:113

Definition at line 117 of file flow_cli.c.

format_function_t format_flow
static

Definition at line 22 of file flow_cli.c.

vlib_cli_command_t show_flow_entry_command
static
Initial value:
= {
.path = "show flow entry",
.short_help = "show flow entry [index <index>]",
.function = show_flow_entry,
}
static clib_error_t * show_flow_entry(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
Definition: flow_cli.c:124

(constructor) VLIB_CLI_COMMAND (show_flow_entry_command)

Definition at line 185 of file flow_cli.c.

vlib_cli_command_t show_flow_interface_command
static
Initial value:
= {
.path = "show flow interface",
.short_help = "show flow interface <interface name>",
.function = show_flow_interface,
}
static clib_error_t * show_flow_interface(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
Definition: flow_cli.c:219

(constructor) VLIB_CLI_COMMAND (show_flow_interface_command)

Definition at line 255 of file flow_cli.c.

vlib_cli_command_t show_flow_ranges_command
static
Initial value:
= {
.path = "show flow ranges",
.short_help = "show flow ranges",
.function = show_flow_ranges,
}
static clib_error_t * show_flow_ranges(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
Definition: flow_cli.c:193

(constructor) VLIB_CLI_COMMAND (show_flow_ranges_command)

Definition at line 211 of file flow_cli.c.

vlib_cli_command_t test_flow_command
static
Initial value:
= {
.path = "test flow",
.short_help = "test flow add [src-ip <ip-addr/mask>] [dst-ip "
"<ip-addr/mask>] [src-port <port/mask>] [dst-port <port/mask>] "
"[proto <ip-proto>",
.function = test_flow,
}
static clib_error_t * test_flow(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd_arg)
Definition: flow_cli.c:263

(constructor) VLIB_CLI_COMMAND (test_flow_command)

Definition at line 374 of file flow_cli.c.