FD.io VPP  v16.09
Vector Packet Processing
ip_lookup_main_t Struct Reference
+ Collaboration diagram for ip_lookup_main_t:

Data Fields

ip_adjacency_tadjacency_heap
 Adjacency heap. More...
 
vlib_combined_counter_main_t adjacency_counters
 Adjacency packet/byte counters indexed by adjacency index. More...
 
ip_multipath_next_hop_tnext_hop_heap
 Heap of (next hop, weight) blocks. More...
 
ip_multipath_adjacency_tmultipath_adjacencies
 Indexed by heap_handle from ip_adjacency_t. More...
 
uwordadj_index_by_signature
 Adjacency by signature hash. More...
 
ip_multipath_next_hop_tnext_hop_hash_lookup_key
 Temporary vectors for looking up next hops in hash. More...
 
ip_multipath_next_hop_tnext_hop_hash_lookup_key_normalized
 
uwordmultipath_adjacency_by_next_hops
 Hash table mapping normalized next hops and weights to multipath adjacency index. More...
 
u32adjacency_remap_table
 
u32 n_adjacency_remaps
 
f64 multipath_next_hop_error_tolerance
 If average error per adjacency is less than this threshold adjacency block size is accepted. More...
 
u32 miss_adj_index
 Adjacency index for routing table misses, local punts, and drops. More...
 
u32 drop_adj_index
 
u32 local_adj_index
 
ip_add_del_adjacency_callback_tadd_del_adjacency_callbacks
 
ip_interface_address_tif_address_pool
 Pool of addresses that are assigned to interfaces. More...
 
mhash_t address_to_if_address_index
 Hash table mapping address to index in interface address pool. More...
 
u32if_address_pool_index_by_sw_if_index
 Head of doubly linked list of interface addresses for each software interface. More...
 
u32classify_table_index_by_sw_if_index
 First table index to use for this interface, ~0 => none. More...
 
ip_config_main_t rx_config_mains [VNET_N_CAST]
 rx/tx interface/feature configuration. More...
 
ip_config_main_t tx_config_main
 
u32 fib_result_n_bytes
 Number of bytes in a fib result. More...
 
u32 fib_result_n_words
 
format_function_tformat_fib_result
 
u32 is_ip6
 1 for ip6; 0 for ip4. More...
 
format_function_tformat_address_and_length
 Either format_ip4_address_and_length or format_ip6_address_and_length. More...
 
format_function_t ** special_adjacency_format_functions
 Special adjacency format functions. More...
 
u8 local_next_by_ip_protocol [256]
 Table mapping ip protocol to ip[46]-local node next index. More...
 
u8 builtin_protocol_by_ip_protocol [256]
 IP_BUILTIN_PROTOCOL_{TCP,UDP,ICMP,OTHER} by protocol in IP header. More...
 
ip_adj_register_tregistered_adjacencies
 Registered adjacencies. More...
 

Detailed Description

Definition at line 399 of file lookup.h.

Field Documentation

ip_add_del_adjacency_callback_t* ip_lookup_main_t::add_del_adjacency_callbacks

Definition at line 436 of file lookup.h.

mhash_t ip_lookup_main_t::address_to_if_address_index

Hash table mapping address to index in interface address pool.

Definition at line 442 of file lookup.h.

uword* ip_lookup_main_t::adj_index_by_signature

Adjacency by signature hash.

Definition at line 413 of file lookup.h.

vlib_combined_counter_main_t ip_lookup_main_t::adjacency_counters

Adjacency packet/byte counters indexed by adjacency index.

Definition at line 404 of file lookup.h.

ip_adjacency_t* ip_lookup_main_t::adjacency_heap

Adjacency heap.

Definition at line 401 of file lookup.h.

u32* ip_lookup_main_t::adjacency_remap_table

Definition at line 423 of file lookup.h.

u8 ip_lookup_main_t::builtin_protocol_by_ip_protocol[256]

IP_BUILTIN_PROTOCOL_{TCP,UDP,ICMP,OTHER} by protocol in IP header.

Definition at line 473 of file lookup.h.

u32* ip_lookup_main_t::classify_table_index_by_sw_if_index

First table index to use for this interface, ~0 => none.

Definition at line 449 of file lookup.h.

u32 ip_lookup_main_t::drop_adj_index

Definition at line 431 of file lookup.h.

u32 ip_lookup_main_t::fib_result_n_bytes

Number of bytes in a fib result.

Must be at least sizeof (uword). First word is always adjacency index.

Definition at line 456 of file lookup.h.

u32 ip_lookup_main_t::fib_result_n_words

Definition at line 456 of file lookup.h.

format_function_t* ip_lookup_main_t::format_address_and_length

Either format_ip4_address_and_length or format_ip6_address_and_length.

Definition at line 464 of file lookup.h.

format_function_t* ip_lookup_main_t::format_fib_result

Definition at line 458 of file lookup.h.

ip_interface_address_t* ip_lookup_main_t::if_address_pool

Pool of addresses that are assigned to interfaces.

Definition at line 439 of file lookup.h.

u32* ip_lookup_main_t::if_address_pool_index_by_sw_if_index

Head of doubly linked list of interface addresses for each software interface.

~0 means this interface has no address.

Definition at line 446 of file lookup.h.

u32 ip_lookup_main_t::is_ip6

1 for ip6; 0 for ip4.

Definition at line 461 of file lookup.h.

u32 ip_lookup_main_t::local_adj_index

Definition at line 431 of file lookup.h.

u8 ip_lookup_main_t::local_next_by_ip_protocol[256]

Table mapping ip protocol to ip[46]-local node next index.

Definition at line 470 of file lookup.h.

u32 ip_lookup_main_t::miss_adj_index

Adjacency index for routing table misses, local punts, and drops.

Definition at line 431 of file lookup.h.

ip_multipath_adjacency_t* ip_lookup_main_t::multipath_adjacencies

Indexed by heap_handle from ip_adjacency_t.

Definition at line 410 of file lookup.h.

uword* ip_lookup_main_t::multipath_adjacency_by_next_hops

Hash table mapping normalized next hops and weights to multipath adjacency index.

Definition at line 421 of file lookup.h.

f64 ip_lookup_main_t::multipath_next_hop_error_tolerance

If average error per adjacency is less than this threshold adjacency block size is accepted.

Definition at line 428 of file lookup.h.

u32 ip_lookup_main_t::n_adjacency_remaps

Definition at line 424 of file lookup.h.

ip_multipath_next_hop_t* ip_lookup_main_t::next_hop_hash_lookup_key

Temporary vectors for looking up next hops in hash.

Definition at line 416 of file lookup.h.

ip_multipath_next_hop_t* ip_lookup_main_t::next_hop_hash_lookup_key_normalized

Definition at line 417 of file lookup.h.

ip_multipath_next_hop_t* ip_lookup_main_t::next_hop_heap

Heap of (next hop, weight) blocks.

Sorted by next hop.

Definition at line 407 of file lookup.h.

ip_adj_register_t* ip_lookup_main_t::registered_adjacencies

Registered adjacencies.

Definition at line 476 of file lookup.h.

ip_config_main_t ip_lookup_main_t::rx_config_mains[VNET_N_CAST]

rx/tx interface/feature configuration.

Definition at line 452 of file lookup.h.

format_function_t** ip_lookup_main_t::special_adjacency_format_functions

Special adjacency format functions.

Definition at line 467 of file lookup.h.

ip_config_main_t ip_lookup_main_t::tx_config_main

Definition at line 452 of file lookup.h.


The documentation for this struct was generated from the following file: