![]() |
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
N-tuple classifier. More...
Include dependency graph for vnet_classify.c:Go to the source code of this file.
Data Structures | |
| struct | tcpudp_header_t |
Macros | |
| #define | foreach_tcp_proto_field |
| #define | foreach_udp_proto_field |
| #define | foreach_ip4_proto_field |
| #define | foreach_ip6_proto_field |
| #define | foreach_l2_input_next |
| #define | foreach_l2_output_next _(drop, DROP) |
| #define | foreach_ip_next |
| #define | foreach_acl_next _(deny, DENY) |
| #define | TEST_CODE 0 |
Variables | |
| vnet_classify_main_t | vnet_classify_main |
| static vlib_cli_command_t | classify_table |
| (constructor) VLIB_CLI_COMMAND (classify_table) More... | |
| static vlib_cli_command_t | classify_filter |
| (constructor) VLIB_CLI_COMMAND (classify_filter) More... | |
| static vlib_cli_command_t | show_classify_filter |
| (constructor) VLIB_CLI_COMMAND (show_classify_filter) More... | |
| static vlib_cli_command_t | show_classify_table_command |
| (constructor) VLIB_CLI_COMMAND (show_classify_table_command) More... | |
| static vlib_cli_command_t | classify_session_command |
| (constructor) VLIB_CLI_COMMAND (classify_session_command) More... | |
N-tuple classifier.
Definition in file vnet_classify.c.
| #define foreach_acl_next _(deny, DENY) |
Definition at line 1440 of file vnet_classify.c.
| #define foreach_ip4_proto_field |
Definition at line 798 of file vnet_classify.c.
| #define foreach_ip6_proto_field |
Definition at line 1016 of file vnet_classify.c.
| #define foreach_ip_next |
Definition at line 1399 of file vnet_classify.c.
| #define foreach_l2_input_next |
Definition at line 1315 of file vnet_classify.c.
| #define foreach_l2_output_next _(drop, DROP) |
Definition at line 1359 of file vnet_classify.c.
| #define foreach_tcp_proto_field |
Definition at line 790 of file vnet_classify.c.
| #define foreach_udp_proto_field |
Definition at line 794 of file vnet_classify.c.
| #define TEST_CODE 0 |
Definition at line 3049 of file vnet_classify.c.
|
static |
| u32 classify_get_pcap_chain | ( | vnet_classify_main_t * | cm, |
| u32 | sw_if_index | ||
| ) |
| u32 classify_get_trace_chain | ( | void | ) |
|
static |
| void classify_set_pcap_chain | ( | vnet_classify_main_t * | cm, |
| u32 | sw_if_index, | ||
| u32 | table_index | ||
| ) |
Definition at line 1760 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void classify_set_trace_chain | ( | vnet_classify_main_t * | cm, |
| u32 | table_index | ||
| ) |
Definition at line 1733 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u32 classify_sort_table_chain | ( | vnet_classify_main_t * | cm, |
| u32 | table_index | ||
| ) |
Definition at line 1679 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| typedef CLIB_PACKED | ( | struct { ethernet_header_t eh;ip4_header_t ip;} | ) |
Definition at line 643 of file vnet_classify.c.
|
static |
Definition at line 1635 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 663 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 686 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 2206 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 228 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mv | ( | vnet_classify_table_t * | t | ) |
| void rogue | ( | vnet_classify_table_t * | t | ) |
Definition at line 84 of file vnet_classify.c.
|
static |
|
static |
|
static |
Definition at line 283 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 334 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_acl_next_index | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 1444 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2948 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_classify_mask | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 1225 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_classify_match | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 2668 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_ip4_mask | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 932 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_ip4_match | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 2332 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_ip6_mask | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 1024 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_ip6_match | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 2428 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_ip_next_index | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 1404 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2921 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_l2_input_next_index | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 1323 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2975 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_l2_mask | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 1116 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_l2_match | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 2551 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_l2_output_next_index | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 1363 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2995 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_l3_mask | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 1099 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_l3_match | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 2517 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_l4_mask | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 896 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_l4_match | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 2301 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2906 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_policer_next_index | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 1486 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_tcp_mask | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 809 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_udp_mask | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 850 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| uword unformat_vlan_tag | ( | unformat_input_t * | input, |
| va_list * | args | ||
| ) |
Definition at line 2535 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int vlib_enable_disable_pkt_trace_filter | ( | int | enable | ) |
Enable / disable packet trace filter.
Definition at line 2021 of file vnet_classify.c.
|
static |
Definition at line 417 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int vnet_classify_add_del_session | ( | vnet_classify_main_t * | cm, |
| u32 | table_index, | ||
| const u8 * | match, | ||
| u32 | hit_next_index, | ||
| u32 | opaque_index, | ||
| i32 | advance, | ||
| u8 | action, | ||
| u16 | metadata, | ||
| int | is_add | ||
| ) |
Definition at line 2746 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int vnet_classify_add_del_table | ( | vnet_classify_main_t * | cm, |
| const u8 * | mask, | ||
| u32 | nbuckets, | ||
| u32 | memory_size, | ||
| u32 | skip, | ||
| u32 | match, | ||
| u32 | next_table_index, | ||
| u32 | miss_next_index, | ||
| u32 * | table_index, | ||
| u8 | current_data_flag, | ||
| i16 | current_data_offset, | ||
| int | is_add, | ||
| int | del_chain | ||
| ) |
Definition at line 746 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void vnet_classify_delete_table_index | ( | vnet_classify_main_t * | cm, |
| u32 | table_index, | ||
| int | del_chain | ||
| ) |
Definition at line 164 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 184 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 383 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Definition at line 400 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| vnet_classify_entry_t* vnet_classify_find_entry | ( | vnet_classify_table_t * | t, |
| u8 * | h, | ||
| u64 | hash, | ||
| f64 | now | ||
| ) |
Definition at line 656 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| vnet_classify_table_t* vnet_classify_new_table | ( | vnet_classify_main_t * | cm, |
| const u8 * | mask, | ||
| u32 | nbuckets, | ||
| u32 | memory_size, | ||
| u32 | skip_n_vectors, | ||
| u32 | match_n_vectors | ||
| ) |
Definition at line 131 of file vnet_classify.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void vnet_classify_register_unformat_acl_next_index_fn | ( | unformat_function_t * | fn | ) |
| void vnet_classify_register_unformat_ip_next_index_fn | ( | unformat_function_t * | fn | ) |
| void vnet_classify_register_unformat_l2_next_index_fn | ( | unformat_function_t * | fn | ) |
| void vnet_classify_register_unformat_opaque_index_fn | ( | unformat_function_t * | fn | ) |
| void vnet_classify_register_unformat_policer_next_index_fn | ( | unformat_function_t * | fn | ) |
| int vnet_is_packet_traced | ( | vlib_buffer_t * | b, |
| u32 | classify_table_index, | ||
| int | func | ||
| ) |
Definition at line 3043 of file vnet_classify.c.
|
static |
(constructor) VLIB_CLI_COMMAND (classify_filter)
Definition at line 2107 of file vnet_classify.c.
|
static |
(constructor) VLIB_CLI_COMMAND (classify_session_command)
Definition at line 2894 of file vnet_classify.c.
|
static |
(constructor) VLIB_CLI_COMMAND (classify_table)
Definition at line 1621 of file vnet_classify.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_classify_filter)
Definition at line 2197 of file vnet_classify.c.
|
static |
(constructor) VLIB_CLI_COMMAND (show_classify_table_command)
Definition at line 2293 of file vnet_classify.c.
| vnet_classify_main_t vnet_classify_main |
Definition at line 32 of file vnet_classify.c.