FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the source code of this file.
Typedefs | |
typedef struct _l2_classify_main | l2_input_classify_main_t |
typedef struct _l2_classify_main | l2_output_classify_main_t |
Functions | |
void | vnet_l2_input_classify_enable_disable (u32 sw_if_index, int enable_disable) |
Enable/disable l2 input classification on a specific interface. More... | |
int | vnet_l2_input_classify_set_tables (u32 sw_if_index, u32 ip4_table_index, u32 ip6_table_index, u32 other_table_index) |
Set l2 per-protocol, per-interface input classification tables. More... | |
void | vnet_l2_output_classify_enable_disable (u32 sw_if_index, int enable_disable) |
Enable/disable l2 input classification on a specific interface. More... | |
int | vnet_l2_output_classify_set_tables (u32 sw_if_index, u32 ip4_table_index, u32 ip6_table_index, u32 other_table_index) |
Set l2 per-protocol, per-interface output classification tables. More... | |
Variables | |
l2_input_classify_main_t | l2_input_classify_main |
l2 input classifier main data structure. More... | |
vlib_node_registration_t | l2_input_classify_node |
(constructor) VLIB_REGISTER_NODE (l2_input_classify_node) More... | |
l2_output_classify_main_t | l2_output_classify_main |
l2 output classifier main data structure. More... | |
vlib_node_registration_t | l2_output_classify_node |
(constructor) VLIB_REGISTER_NODE (l2_output_classify_node) More... | |
typedef struct _l2_classify_main l2_input_classify_main_t |
typedef struct _l2_classify_main l2_output_classify_main_t |
Definition at line 83 of file l2_classify.h.
Enumerator | |
---|---|
L2_INPUT_CLASSIFY_NEXT_DROP | |
L2_INPUT_CLASSIFY_NEXT_ETHERNET_INPUT | |
L2_INPUT_CLASSIFY_NEXT_IP4_INPUT | |
L2_INPUT_CLASSIFY_NEXT_IP6_INPUT | |
L2_INPUT_CLASSIFY_NEXT_LI | |
L2_INPUT_CLASSIFY_N_NEXT |
Definition at line 36 of file l2_classify.h.
Enumerator | |
---|---|
L2_INPUT_CLASSIFY_TABLE_IP4 | |
L2_INPUT_CLASSIFY_TABLE_IP6 | |
L2_INPUT_CLASSIFY_TABLE_OTHER | |
L2_INPUT_CLASSIFY_N_TABLES |
Definition at line 46 of file l2_classify.h.
Enumerator | |
---|---|
L2_OUTPUT_CLASSIFY_NEXT_DROP | |
L2_OUTPUT_CLASSIFY_N_NEXT |
Definition at line 54 of file l2_classify.h.
Enumerator | |
---|---|
L2_OUTPUT_CLASSIFY_TABLE_IP4 | |
L2_OUTPUT_CLASSIFY_TABLE_IP6 | |
L2_OUTPUT_CLASSIFY_TABLE_OTHER | |
L2_OUTPUT_CLASSIFY_N_TABLES |
Definition at line 60 of file l2_classify.h.
void vnet_l2_input_classify_enable_disable | ( | u32 | sw_if_index, |
int | enable_disable | ||
) |
Enable/disable l2 input classification on a specific interface.
Definition at line 517 of file l2_input_classify.c.
int vnet_l2_input_classify_set_tables | ( | u32 | sw_if_index, |
u32 | ip4_table_index, | ||
u32 | ip6_table_index, | ||
u32 | other_table_index | ||
) |
Set l2 per-protocol, per-interface input classification tables.
sw_if_index | interface handle |
ip4_table_index | ip4 classification table index, or ~0 |
ip6_table_index | ip6 classification table index, or ~0 |
other_table_index | non-ip4, non-ip6 classification table index, or ~0 |
Definition at line 535 of file l2_input_classify.c.
void vnet_l2_output_classify_enable_disable | ( | u32 | sw_if_index, |
int | enable_disable | ||
) |
Enable/disable l2 input classification on a specific interface.
Definition at line 506 of file l2_output_classify.c.
int vnet_l2_output_classify_set_tables | ( | u32 | sw_if_index, |
u32 | ip4_table_index, | ||
u32 | ip6_table_index, | ||
u32 | other_table_index | ||
) |
Set l2 per-protocol, per-interface output classification tables.
sw_if_index | interface handle |
ip4_table_index | ip4 classification table index, or ~0 |
ip6_table_index | ip6 classification table index, or ~0 |
other_table_index | non-ip4, non-ip6 classification table index, or ~0 |
Definition at line 525 of file l2_output_classify.c.
l2_input_classify_main_t l2_input_classify_main |
l2 input classifier main data structure.
Definition at line 74 of file l2_input_classify.c.
vlib_node_registration_t l2_input_classify_node |
(constructor) VLIB_REGISTER_NODE (l2_input_classify_node)
Definition at line 447 of file l2_input_classify.c.
l2_output_classify_main_t l2_output_classify_main |
l2 output classifier main data structure.
Definition at line 66 of file l2_output_classify.c.
vlib_node_registration_t l2_output_classify_node |
(constructor) VLIB_REGISTER_NODE (l2_output_classify_node)
Definition at line 440 of file l2_output_classify.c.