Go to the source code of this file.
|
static u8 * | format_l2flood_trace (u8 *s, va_list *args) |
|
static_always_inline void | l2flood_process (vlib_main_t *vm, vlib_node_runtime_t *node, l2flood_main_t *msm, u64 *counter_base, vlib_buffer_t *b0, u32 *sw_if_index0, l2fib_entry_key_t *key0, u32 *bucket0, l2fib_entry_result_t *result0, u32 *next0) |
|
static uword | l2flood_node_fn (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
|
clib_error_t * | l2flood_init (vlib_main_t *vm) |
|
void | l2flood_register_input_type (vlib_main_t *vm, ethernet_type_t type, u32 node_index) |
| Add the L3 input node for this ethertype to the next nodes structure. More...
|
|
static clib_error_t * | int_flood (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
| Set subinterface flood enable/disable. More...
|
|
#define foreach_l2flood_error |
Value:_(L2FLOOD, "L2 flood packets") \
_(REPL_FAIL, "L2 replication failures") \
_(NO_MEMBERS, "L2 replication complete") \
_(BVI_BAD_MAC, "BVI L3 mac mismatch") \
_(BVI_ETHERTYPE, "BVI packet with unhandled ethertype")
Definition at line 88 of file l2_flood.c.
Enumerator |
---|
L2FLOOD_N_ERROR |
|
Definition at line 95 of file l2_flood.c.
Enumerator |
---|
L2FLOOD_NEXT_L2_OUTPUT |
|
L2FLOOD_NEXT_DROP |
|
L2FLOOD_N_NEXT |
|
Definition at line 109 of file l2_flood.c.
static u8* format_l2flood_trace |
( |
u8 * |
s, |
|
|
va_list * |
args |
|
) |
| |
|
static |
Set subinterface flood enable/disable.
The CLI format is: set interface l2 flood <interface> [disable]
Definition at line 513 of file l2_flood.c.
Add the L3 input node for this ethertype to the next nodes structure.
Definition at line 495 of file l2_flood.c.
Initial value:= {
.path = "set interface l2 flood",
.short_help = "set interface l2 flood <interface> [disable]",
}
static clib_error_t * int_flood(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
Set subinterface flood enable/disable.
(constructor) VLIB_CLI_COMMAND (int_flood_cli)
Definition at line 542 of file l2_flood.c.
char* l2flood_error_strings[] |
|
static |
Initial value:= {
#define _(sym,string)
}
#define foreach_l2flood_error
Definition at line 103 of file l2_flood.c.
Initial value:= {
.name = "l2-flood",
.vector_size =
sizeof (
u32),
.next_nodes = {
},
}
bad routing header type(not 4)") sr_error (NO_MORE_SEGMENTS
static uword l2flood_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
static char * l2flood_error_strings[]
static u8 * format_l2flood_trace(u8 *s, va_list *args)
(constructor) VLIB_REGISTER_NODE (l2flood_node)
Definition at line 86 of file l2_flood.c.