FD.io VPP  v17.04-9-g99c0734
Vector Packet Processing
span.c File Reference
+ Include dependency graph for span.c:

Go to the source code of this file.

Functions

int span_add_delete_entry (vlib_main_t *vm, u32 src_sw_if_index, u32 dst_sw_if_index, u8 state)
 
static clib_error_tset_interface_span_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tshow_interfaces_span_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
 
static clib_error_tspan_init (vlib_main_t *vm)
 

Variables

static vlib_cli_command_t set_interface_span_command
 (constructor) VLIB_CLI_COMMAND (set_interface_span_command) More...
 
static vlib_cli_command_t show_interfaces_span_command
 (constructor) VLIB_CLI_COMMAND (show_interfaces_span_command) More...
 

Function Documentation

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

Definition at line 81 of file span.c.

+ Here is the call graph for this function:

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

Definition at line 126 of file span.c.

+ Here is the call graph for this function:

int span_add_delete_entry ( vlib_main_t vm,
u32  src_sw_if_index,
u32  dst_sw_if_index,
u8  state 
)

Definition at line 23 of file span.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static clib_error_t* span_init ( vlib_main_t vm)
static

Definition at line 179 of file span.c.

+ Here is the call graph for this function:

Variable Documentation

vlib_cli_command_t set_interface_span_command
static
Initial value:
= {
.path = "set interface span",
.short_help = "set interface span <if-name> [disable | destination <if-name> [both|rx|tx]]",
}
static clib_error_t * set_interface_span_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: span.c:81

(constructor) VLIB_CLI_COMMAND (set_interface_span_command)

Definition at line 118 of file span.c.

vlib_cli_command_t show_interfaces_span_command
static
Initial value:
= {
.path = "show interface span",
.short_help = "Shows SPAN mirror table",
}
static clib_error_t * show_interfaces_span_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Definition: span.c:126

(constructor) VLIB_CLI_COMMAND (show_interfaces_span_command)

Definition at line 171 of file span.c.