FD.io VPP  v16.09
Vector Packet Processing
ip4_main_t Struct Reference

IPv4 main type. More...

+ Collaboration diagram for ip4_main_t:

Data Fields

ip_lookup_main_t lookup_main
 
ip4_fib_tfibs
 Vector of FIBs. More...
 
u32 fib_masks [33]
 
u32fib_index_by_sw_if_index
 Table index indexed by software interface. More...
 
uwordfib_index_by_table_id
 Hash table mapping table id to fib index. More...
 
ip4_add_del_route_callback_tadd_del_route_callbacks
 Vector of functions to call when routes are added/deleted. More...
 
uwordinterface_route_adj_index_by_sw_if_index
 Hash table mapping interface route rewrite adjacency index by sw if index. More...
 
ip4_add_del_interface_address_callback_tadd_del_interface_address_callbacks
 Functions to call when interface address changes. More...
 
vlib_packet_template_t ip4_arp_request_packet_template
 Template used to generate IP4 ARP packets. More...
 
vnet_ip_feature_registration_tnext_uc_feature
 Feature path configuration lists. More...
 
vnet_ip_feature_registration_tnext_mc_feature
 
u32 ip4_unicast_rx_feature_check_access
 Built-in unicast feature path indice, see ip_feature_init_cast() More...
 
u32 ip4_unicast_rx_feature_source_reachable_via_rx
 Built-in unicast feature path indice, see ip_feature_init_cast() More...
 
u32 ip4_unicast_rx_feature_source_reachable_via_any
 Built-in unicast feature path indice, see ip_feature_init_cast() More...
 
u32 ip4_unicast_rx_feature_policer_classify
 Built-in unicast feature path indice, see ip_feature_init_cast() More...
 
u32 ip4_unicast_rx_feature_ipsec
 Built-in unicast feature path indice, see ip_feature_init_cast() More...
 
u32 ip4_unicast_rx_feature_vpath
 Built-in unicast feature path indice, see ip_feature_init_cast() More...
 
u32 ip4_unicast_rx_feature_lookup
 Built-in unicast feature path indice, see ip_feature_init_cast() More...
 
u32 ip4_unicast_rx_feature_source_and_port_range_check
 Built-in unicast feature path indice, see ip_feature_init_cast() More...
 
u32 ip4_multicast_rx_feature_vpath
 Built-in multicast feature path indices. More...
 
u32 ip4_multicast_rx_feature_lookup
 Built-in multicast feature path indices. More...
 
char ** feature_nodes [VNET_N_CAST]
 Save results for show command. More...
 
u32 flow_hash_seed
 Seed for Jenkins hash used to compute ip4 flow hash. More...
 
struct {
   u8   ttl
 TTL to use for host generated packets. More...
 
   u8   tos
 TOS byte to use for host generated packets. More...
 
   u8   pad [2]
 
host_config
 Template information for VPP generated packets. More...
 

Detailed Description

IPv4 main type.

State of IPv4 VPP processing including:

  • FIBs
  • Feature indices used in feature topological sort
  • Feature node run time references

Definition at line 114 of file ip4.h.

Field Documentation

ip4_add_del_interface_address_callback_t* ip4_main_t::add_del_interface_address_callbacks

Functions to call when interface address changes.

Definition at line 136 of file ip4.h.

ip4_add_del_route_callback_t* ip4_main_t::add_del_route_callbacks

Vector of functions to call when routes are added/deleted.

Definition at line 130 of file ip4.h.

char** ip4_main_t::feature_nodes[VNET_N_CAST]

Save results for show command.

Definition at line 168 of file ip4.h.

u32* ip4_main_t::fib_index_by_sw_if_index

Table index indexed by software interface.

Definition at line 123 of file ip4.h.

uword* ip4_main_t::fib_index_by_table_id

Hash table mapping table id to fib index.

ID space is not necessarily dense; index space is dense.

Definition at line 127 of file ip4.h.

u32 ip4_main_t::fib_masks[33]

Definition at line 120 of file ip4.h.

ip4_fib_t* ip4_main_t::fibs

Vector of FIBs.

Definition at line 118 of file ip4.h.

u32 ip4_main_t::flow_hash_seed

Seed for Jenkins hash used to compute ip4 flow hash.

Definition at line 171 of file ip4.h.

struct { ... } ip4_main_t::host_config

Template information for VPP generated packets.

uword* ip4_main_t::interface_route_adj_index_by_sw_if_index

Hash table mapping interface route rewrite adjacency index by sw if index.

Definition at line 133 of file ip4.h.

vlib_packet_template_t ip4_main_t::ip4_arp_request_packet_template

Template used to generate IP4 ARP packets.

Definition at line 139 of file ip4.h.

u32 ip4_main_t::ip4_multicast_rx_feature_lookup

Built-in multicast feature path indices.

Definition at line 165 of file ip4.h.

u32 ip4_main_t::ip4_multicast_rx_feature_vpath

Built-in multicast feature path indices.

Definition at line 163 of file ip4.h.

u32 ip4_main_t::ip4_unicast_rx_feature_check_access

Built-in unicast feature path indice, see ip_feature_init_cast()

Definition at line 146 of file ip4.h.

u32 ip4_main_t::ip4_unicast_rx_feature_ipsec

Built-in unicast feature path indice, see ip_feature_init_cast()

Definition at line 154 of file ip4.h.

u32 ip4_main_t::ip4_unicast_rx_feature_lookup

Built-in unicast feature path indice, see ip_feature_init_cast()

Definition at line 158 of file ip4.h.

u32 ip4_main_t::ip4_unicast_rx_feature_policer_classify

Built-in unicast feature path indice, see ip_feature_init_cast()

Definition at line 152 of file ip4.h.

u32 ip4_main_t::ip4_unicast_rx_feature_source_and_port_range_check

Built-in unicast feature path indice, see ip_feature_init_cast()

Definition at line 160 of file ip4.h.

u32 ip4_main_t::ip4_unicast_rx_feature_source_reachable_via_any

Built-in unicast feature path indice, see ip_feature_init_cast()

Definition at line 150 of file ip4.h.

u32 ip4_main_t::ip4_unicast_rx_feature_source_reachable_via_rx

Built-in unicast feature path indice, see ip_feature_init_cast()

Definition at line 148 of file ip4.h.

u32 ip4_main_t::ip4_unicast_rx_feature_vpath

Built-in unicast feature path indice, see ip_feature_init_cast()

Definition at line 156 of file ip4.h.

ip_lookup_main_t ip4_main_t::lookup_main

Definition at line 115 of file ip4.h.

vnet_ip_feature_registration_t* ip4_main_t::next_mc_feature

Definition at line 143 of file ip4.h.

vnet_ip_feature_registration_t* ip4_main_t::next_uc_feature

Feature path configuration lists.

Definition at line 142 of file ip4.h.

u8 ip4_main_t::pad[2]

Definition at line 181 of file ip4.h.

u8 ip4_main_t::tos

TOS byte to use for host generated packets.

Definition at line 179 of file ip4.h.

u8 ip4_main_t::ttl

TTL to use for host generated packets.

Definition at line 176 of file ip4.h.


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