![]() |
FD.io VPP
v16.06
Vector Packet Processing
|
Include dependency graph for ip4_forward.c:Go to the source code of this file.
Data Structures | |
| struct | ip4_interface_address_t |
| struct | ip4_forward_next_trace_t |
Macros | |
| #define | foreach_notrace_ip4_arp_error |
Enumerations | |
| enum | ip4_rewrite_next_t { IP4_REWRITE_NEXT_DROP, IP4_REWRITE_NEXT_ARP } |
Variables | |
| vlib_node_registration_t | ip4_lookup_node |
| (constructor) VLIB_REGISTER_NODE (ip4_lookup_node) More... | |
| vlib_node_registration_t | ip4_indirect_node |
| (constructor) VLIB_REGISTER_NODE (ip4_indirect_node) More... | |
| ip4_main_t | ip4_main |
| vlib_node_registration_t | ip4_drop_node |
| (constructor) VLIB_REGISTER_NODE (ip4_drop_node) More... | |
| vlib_node_registration_t | ip4_punt_node |
| (constructor) VLIB_REGISTER_NODE (ip4_punt_node) More... | |
| vlib_node_registration_t | ip4_miss_node |
| (constructor) VLIB_REGISTER_NODE (ip4_miss_node) More... | |
| vlib_node_registration_t | ip4_local_node |
| (constructor) VLIB_REGISTER_NODE (ip4_local_node) More... | |
| vlib_cli_command_t | show_ip_local |
| (constructor) VLIB_CLI_COMMAND (show_ip_local) More... | |
| static char * | ip4_arp_error_strings [] |
| vlib_node_registration_t | ip4_arp_node |
| (constructor) VLIB_REGISTER_NODE (ip4_arp_node) More... | |
| vlib_node_registration_t | ip4_rewrite_node |
| (constructor) VLIB_REGISTER_NODE (ip4_rewrite_node) More... | |
| vlib_node_registration_t | ip4_rewrite_local_node |
| (constructor) VLIB_REGISTER_NODE (ip4_rewrite_local_node) More... | |
| vlib_cli_command_t | set_interface_ip_table_command |
| (constructor) VLIB_CLI_COMMAND (set_interface_ip_table_command) More... | |
| vlib_node_registration_t | ip4_lookup_multicast_node |
| (constructor) VLIB_REGISTER_NODE (ip4_lookup_multicast_node) More... | |
| vlib_node_registration_t | ip4_multicast_node |
| (constructor) VLIB_REGISTER_NODE (ip4_multicast_node) More... | |
| vlib_cli_command_t | lookup_test_command |
| (constructor) VLIB_CLI_COMMAND (lookup_test_command) More... | |
| vlib_cli_command_t | set_ip_flow_hash_command |
| (constructor) VLIB_CLI_COMMAND (set_ip_flow_hash_command) More... | |
| vlib_cli_command_t | set_ip_classify_command |
| (constructor) VLIB_CLI_COMMAND (set_ip_classify_command) More... | |
| #define foreach_notrace_ip4_arp_error |
Definition at line 2357 of file ip4_forward.c.
| enum ip4_rewrite_next_t |
| Enumerator | |
|---|---|
| IP4_REWRITE_NEXT_DROP | |
| IP4_REWRITE_NEXT_ARP | |
Definition at line 2445 of file ip4_forward.c.
|
static |
| clib_error_t* arp_notrace_init | ( | vlib_main_t * | vm | ) |
|
static |
Definition at line 83 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| ip4_fib_t* find_ip4_fib_by_table_index_or_id | ( | ip4_main_t * | im, |
| u32 | table_index_or_id, | ||
| u32 | flags | ||
| ) |
Get or create an IPv4 fib.
Get or create an IPv4 fib with the provided fib ID or index. The fib ID is a possibly-sparse user-defined value while the fib index defines the position of the fib in the fib vector.
| im | ip4_main pointer. |
| table_index_or_id | The table index if IP4_ROUTE_FLAG_FIB_INDEX bit is set in flags. Otherwise, when set to ~0, an arbitrary and unused fib ID is picked and can be retrieved with ret->table_id. Otherwise, the fib ID to be used to retrieve or create the desired fib. |
| flags | Indicates whether table_index_or_id is the fib index or ID. When the bit IP4_ROUTE_FLAG_FIB_INDEX is set, table_index_or_id is considered as the fib index, and the fib ID otherwise. |
Definition at line 98 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 1477 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| clib_error_t* ip4_add_del_interface_address | ( | vlib_main_t * | vm, |
| u32 | sw_if_index, | ||
| ip4_address_t * | address, | ||
| u32 | address_length, | ||
| u32 | is_del | ||
| ) |
Definition at line 1239 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1159 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void ip4_add_del_route | ( | ip4_main_t * | im, |
| ip4_add_del_route_args_t * | a | ||
| ) |
Definition at line 196 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void ip4_add_del_route_next_hop | ( | ip4_main_t * | im, |
| u32 | flags, | ||
| ip4_address_t * | dst_address, | ||
| u32 | dst_address_length, | ||
| ip4_address_t * | next_hop, | ||
| u32 | next_hop_sw_if_index, | ||
| u32 | next_hop_weight, | ||
| u32 | adj_index, | ||
| u32 | explicit_fib_index | ||
| ) |
Definition at line 274 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1052 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void ip4_adjacency_set_interface_route | ( | vnet_main_t * | vnm, |
| ip_adjacency_t * | adj, | ||
| u32 | sw_if_index, | ||
| u32 | if_address_index | ||
| ) |
Definition at line 1005 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Definition at line 1115 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void ip4_delete_matching_routes | ( | ip4_main_t * | im, |
| u32 | table_index_or_table_id, | ||
| u32 | flags, | ||
| ip4_address_t * | address, | ||
| u32 | address_length | ||
| ) |
Definition at line 602 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
Definition at line 1604 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 123 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| u32 ip4_fib_lookup_with_table | ( | ip4_main_t * | im, |
| u32 | fib_index, | ||
| ip4_address_t * | dst, | ||
| u32 | disable_default_route | ||
| ) |
|
static |
Definition at line 148 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void ip4_foreach_matching_route | ( | ip4_main_t * | im, |
| u32 | table_index_or_table_id, | ||
| u32 | flags, | ||
| ip4_address_t * | address, | ||
| u32 | address_length, | ||
| ip4_address_t ** | results, | ||
| u8 ** | result_lengths | ||
| ) |
Definition at line 488 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void ip4_forward_next_trace | ( | vlib_main_t * | vm, |
| vlib_node_runtime_t * | node, | ||
| vlib_frame_t * | frame, | ||
| vlib_rx_or_tx_t | which_adj_index | ||
| ) |
Definition at line 1517 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void* ip4_get_route | ( | ip4_main_t * | im, |
| u32 | table_index_or_table_id, | ||
| u32 | flags, | ||
| u8 * | address, | ||
| u32 | address_length | ||
| ) |
Definition at line 469 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
| clib_error_t* ip4_lookup_init | ( | vlib_main_t * | vm | ) |
Definition at line 1397 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| always_inline uword ip4_lookup_inline | ( | vlib_main_t * | vm, |
| vlib_node_runtime_t * | node, | ||
| vlib_frame_t * | frame, | ||
| int | lookup_for_responses_to_locally_received_packets, | ||
| int | is_indirect | ||
| ) |
Definition at line 644 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| int ip4_lookup_validate | ( | ip4_address_t * | a, |
| u32 | fib_index0 | ||
| ) |
Definition at line 3099 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void ip4_maybe_remap_adjacencies | ( | ip4_main_t * | im, |
| u32 | table_index_or_table_id, | ||
| u32 | flags | ||
| ) |
Definition at line 522 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| clib_error_t* ip4_probe_neighbor | ( | vlib_main_t * | vm, |
| ip4_address_t * | dst, | ||
| u32 | sw_if_index | ||
| ) |
Definition at line 2383 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2125 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| always_inline uword ip4_rewrite_inline | ( | vlib_main_t * | vm, |
| vlib_node_runtime_t * | node, | ||
| vlib_frame_t * | frame, | ||
| int | rewrite_for_locally_received_packets | ||
| ) |
Definition at line 2451 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
|
static |
| u16 ip4_tcp_udp_compute_checksum | ( | vlib_main_t * | vm, |
| vlib_buffer_t * | p0, | ||
| ip4_header_t * | ip0 | ||
| ) |
Definition at line 1685 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1730 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
static |
|
static |
|
static |
| int vnet_set_ip4_classify_intfc | ( | vlib_main_t * | vm, |
| u32 | sw_if_index, | ||
| u32 | table_index | ||
| ) |
Definition at line 3239 of file ip4_forward.c.
Here is the call graph for this function:
Here is the caller graph for this function:| VNET_SW_INTERFACE_ADD_DEL_FUNCTION | ( | ip4_sw_interface_add_del | ) |
Here is the caller graph for this function:| VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION | ( | ip4_sw_interface_admin_up_down | ) |
Here is the caller graph for this function:
|
static |
Definition at line 2333 of file ip4_forward.c.
| vlib_node_registration_t ip4_arp_node |
(constructor) VLIB_REGISTER_NODE (ip4_arp_node)
Definition at line 2341 of file ip4_forward.c.
| vlib_node_registration_t ip4_drop_node |
(constructor) VLIB_REGISTER_NODE (ip4_drop_node)
Definition at line 1644 of file ip4_forward.c.
| vlib_node_registration_t ip4_indirect_node |
(constructor) VLIB_REGISTER_NODE (ip4_indirect_node)
Definition at line 1381 of file ip4_forward.c.
| vlib_node_registration_t ip4_local_node |
(constructor) VLIB_REGISTER_NODE (ip4_local_node)
Definition at line 2109 of file ip4_forward.c.
| vlib_node_registration_t ip4_lookup_multicast_node |
(constructor) VLIB_REGISTER_NODE (ip4_lookup_multicast_node)
Definition at line 3075 of file ip4_forward.c.
| vlib_node_registration_t ip4_lookup_node |
(constructor) VLIB_REGISTER_NODE (ip4_lookup_node)
Definition at line 1360 of file ip4_forward.c.
| ip4_main_t ip4_main |
Definition at line 1394 of file ip4_forward.c.
| vlib_node_registration_t ip4_miss_node |
(constructor) VLIB_REGISTER_NODE (ip4_miss_node)
Definition at line 1670 of file ip4_forward.c.
| vlib_node_registration_t ip4_multicast_node |
(constructor) VLIB_REGISTER_NODE (ip4_multicast_node)
Definition at line 3086 of file ip4_forward.c.
| vlib_node_registration_t ip4_punt_node |
(constructor) VLIB_REGISTER_NODE (ip4_punt_node)
Definition at line 1657 of file ip4_forward.c.
| vlib_node_registration_t ip4_rewrite_local_node |
(constructor) VLIB_REGISTER_NODE (ip4_rewrite_local_node)
Definition at line 2792 of file ip4_forward.c.
| vlib_node_registration_t ip4_rewrite_node |
(constructor) VLIB_REGISTER_NODE (ip4_rewrite_node)
Definition at line 2778 of file ip4_forward.c.
| vlib_cli_command_t lookup_test_command |
(constructor) VLIB_CLI_COMMAND (lookup_test_command)
Definition at line 3170 of file ip4_forward.c.
| vlib_cli_command_t set_interface_ip_table_command |
(constructor) VLIB_CLI_COMMAND (set_interface_ip_table_command)
Definition at line 2850 of file ip4_forward.c.
| vlib_cli_command_t set_ip_classify_command |
(constructor) VLIB_CLI_COMMAND (set_ip_classify_command)
Definition at line 3302 of file ip4_forward.c.
| vlib_cli_command_t set_ip_flow_hash_command |
(constructor) VLIB_CLI_COMMAND (set_ip_flow_hash_command)
Definition at line 3232 of file ip4_forward.c.
| vlib_cli_command_t show_ip_local |
(constructor) VLIB_CLI_COMMAND (show_ip_local)
Definition at line 2155 of file ip4_forward.c.