Go to the source code of this file.
|
static u8 * | format_l2_rw_entry (u8 *s, va_list *args) |
|
static u8 * | format_l2_rw_config (u8 *s, va_list *args) |
|
static u8 * | format_l2_rw_trace (u8 *s, va_list *args) |
|
always_inline l2_rw_config_t * | l2_rw_get_config (u32 sw_if_index) |
|
static_always_inline void | l2_rw_rewrite (l2_rw_entry_t *rwe, u8 *h) |
|
static uword | l2_rw_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
int | l2_rw_mod_entry (u32 *index, u8 *mask, u8 *value, u32 len, u32 skip, u8 is_del) |
|
static clib_error_t * | l2_rw_entry_cli_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
int | l2_rw_interface_set_table (u32 sw_if_index, u32 table_index, u32 miss_index) |
|
static clib_error_t * | l2_rw_interface_cli_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | l2_rw_show_interfaces_cli_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | l2_rw_show_entries_cli_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
int | l2_rw_enable_disable (u32 bridge_domain, u8 disable) |
|
static clib_error_t * | l2_rw_set_cli_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | l2_rw_init (vlib_main_t *vm) |
|
#define foreach_l2_rw_error _(UNKNOWN, "Unknown error") |
Enumerator |
---|
L2_RW_NEXT_DROP |
|
L2_RW_N_NEXT |
|
Definition at line 573 of file l2_rw.c.
static u8* format_l2_rw_config |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_l2_rw_entry |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
static u8* format_l2_rw_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
int l2_rw_enable_disable |
( |
u32 |
bridge_domain, |
|
|
u8 |
disable |
|
) |
| |
int l2_rw_interface_set_table |
( |
u32 |
sw_if_index, |
|
|
u32 |
table_index, |
|
|
u32 |
miss_index |
|
) |
| |
int l2_rw_mod_entry |
( |
u32 * |
index, |
|
|
u8 * |
mask, |
|
|
u8 * |
value, |
|
|
u32 |
len, |
|
|
u32 |
skip, |
|
|
u8 |
is_del |
|
) |
| |
Initial value:= {
.path = "l2 rewrite entry",
.short_help =
"l2 rewrite entry [index <index>] [mask <hex-mask>] [value <hex-value>] [skip <n_bytes>] [del]",
}
static clib_error_t * l2_rw_entry_cli_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (l2_rw_entry_cli)
Definition at line 403 of file l2_rw.c.
char* l2_rw_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_l2_rw_error
Definition at line 588 of file l2_rw.c.
Initial value:= {
.path = "set interface l2 rewrite",
.short_help =
"set interface l2 rewrite <interface> [table <table index>] [miss-index <entry-index>]",
}
static clib_error_t * l2_rw_interface_cli_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (l2_rw_interface_cli)
Definition at line 464 of file l2_rw.c.
Initial value:= {
.name = "l2-rw",
.vector_size =
sizeof (
u32),
.runtime_data_bytes = 0,
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static char * l2_rw_error_strings[]
static u8 * format_l2_rw_trace(u8 *s, va_list *args)
static uword l2_rw_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
(constructor) VLIB_REGISTER_NODE (l2_rw_node)
Definition at line 22 of file l2_rw.c.
Initial value:= {
.path = "set bridge-domain rewrite",
.short_help =
"set bridge-domain rewrite <bridge-domain> [disable]",
}
static clib_error_t * l2_rw_set_cli_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (l2_rw_set_cli)
Definition at line 550 of file l2_rw.c.
Initial value:= {
.path = "show l2 rewrite entries",
.short_help =
"show l2 rewrite entries",
}
static clib_error_t * l2_rw_show_entries_cli_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (l2_rw_show_entries_cli)
Definition at line 510 of file l2_rw.c.
Initial value:= {
.path = "show l2 rewrite interfaces",
.short_help =
"show l2 rewrite interfaces",
}
static clib_error_t * l2_rw_show_interfaces_cli_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (l2_rw_show_interfaces_cli)
Definition at line 487 of file l2_rw.c.