|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
40 #ifndef included_ip_ip4_h
41 #define included_ip_ip4_h
71 u32 address_length,
u32 if_address_index,
u32 is_del);
168 #define ARP_THROTTLE_BITS (512)
191 return 0 == ((
key->data_u32 ^ dest->
data_u32) &
im->fib_masks[dest_length]);
228 *result_ia = result ? ia : 0;
239 u32 address_length,
u32 is_del);
286 return (fib_index == (
u32) ~ 0) ?
void() ip4_add_del_interface_address_function_t(struct ip4_main_t *im, uword opaque, u32 sw_if_index, ip4_address_t *address, u32 address_length, u32 if_address_index, u32 is_del)
u8 ttl
TTL to use for host generated packets.
void ip4_unregister_protocol(u32 protocolx)
vlib_node_registration_t ip4_lookup_node
(constructor) VLIB_REGISTER_NODE (ip4_lookup_node)
vlib_node_registration_t ip4_midchain_node
(constructor) VLIB_REGISTER_NODE (ip4_midchain_node)
vnet_interface_main_t * im
static void * ip_interface_address_get_address(ip_lookup_main_t *lm, ip_interface_address_t *a)
#define foreach_ip_interface_address(lm, a, sw_if_index, loop, body)
void ip4_directed_broadcast(u32 sw_if_index, u8 enable)
vl_api_ip_port_and_mask_t dst_port
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
ip_lookup_main_t lookup_main
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)
ip4_table_bind_callback_t * table_bind_callbacks
Functions to call when interface to table biding changes.
ip4_main_t ip4_main
Global ip4 main structure.
void ip4_sw_interface_enable_disable(u32 sw_if_index, u32 is_enable)
vlib_node_registration_t ip4_rewrite_local_node
vlib_main_t vlib_node_runtime_t * node
struct ip4_main_t::@378 host_config
Template information for VPP generated packets.
void() serialize_function_t(serialize_main_t *m, va_list *va)
static ip4_address_t * ip4_interface_address_matching_destination(ip4_main_t *im, const ip4_address_t *dst, u32 sw_if_index, ip_interface_address_t **result_ia)
vlib_packet_template_t ip4_arp_request_packet_template
Template used to generate IP4 ARP packets.
uword * fib_index_by_table_id
Hash table mapping table id to fib index.
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
vlib_node_registration_t ip4_local_node
(constructor) VLIB_REGISTER_NODE (ip4_local_node)
void ip4_register_protocol(u32 protocol, u32 node_index)
vlib_node_registration_t ip4_rewrite_node
(constructor) VLIB_REGISTER_NODE (ip4_rewrite_node)
ip4_enable_disable_interface_callback_t * enable_disable_interface_callbacks
Functions to call when interface becomes IPv4 enabled/disable.
vlib_node_registration_t ip4_rewrite_mcast_node
(constructor) VLIB_REGISTER_NODE (ip4_rewrite_mcast_node)
A protocol Independent IP multicast FIB table.
u8 * format_ip4_forward_next_trace(u8 *s, va_list *args)
serialize_function_t serialize_vnet_ip4_main
#define vec_elt(v, i)
Get vector value at index i.
struct ip4_main_t ip4_main_t
IPv4 main type.
u32 * fib_index_by_sw_if_index
Table index indexed by software interface.
A protocol Independent FIB table.
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)
static uword ip4_destination_matches_interface(ip4_main_t *im, ip4_address_t *key, ip_interface_address_t *ia)
u32 ip4_tcp_udp_validate_checksum(vlib_main_t *vm, vlib_buffer_t *p0)
uword * mfib_index_by_table_id
Hash table mapping table id to multicast fib index.
manual_print typedef address
uword * fib_entry_by_dst_address[65]
u8 * ip_enabled_by_sw_if_index
void() ip4_enable_disable_interface_function_t(struct ip4_main_t *im, uword opaque, u32 sw_if_index, u32 is_enable)
struct _vlib_node_registration vlib_node_registration_t
serialize_function_t unserialize_vnet_ip4_main
int ip4_address_compare(ip4_address_t *a1, ip4_address_t *a2)
void ip4_punt_policer_add_del(u8 is_add, u32 policer_index)
static uword ip4_destination_matches_route(const ip4_main_t *im, const ip4_address_t *key, const ip4_address_t *dest, uword dest_length)
ip4_add_del_interface_address_callback_t * add_del_interface_address_callbacks
Functions to call when interface address changes.
u16 ip4_tcp_udp_compute_checksum(vlib_main_t *vm, vlib_buffer_t *p0, ip4_header_t *ip0)
u32 * mfib_index_by_sw_if_index
Table index indexed by software interface.
vlib_node_registration_t ip4_arp_node
(constructor) VLIB_REGISTER_NODE (ip4_arp_node)
vlib_node_registration_t ip4_glean_node
(constructor) VLIB_REGISTER_NODE (ip4_glean_node)
vl_api_ip_proto_t protocol
struct fib_table_t_ * fibs
Vector of FIBs.
static u32 vlib_buffer_get_ip4_fib_index(vlib_buffer_t *b)
A representation of a path as described by a route producer.
vlib_node_registration_t ip4_punt_node
(constructor) VLIB_REGISTER_NODE (ip4_punt_node)
char * ip4_error_strings[]
struct mfib_table_t_ * mfibs
Vector of MFIBs.
IP prefix management on interfaces.
void ip4_punt_redirect_del(u32 rx_sw_if_index)
vlib_node_registration_t ip4_input_node
Global ip4 input node.
void() ip4_table_bind_function_t(struct ip4_main_t *im, uword opaque, u32 sw_if_index, u32 new_fib_index, u32 old_fib_index)
u8 tos
TOS byte to use for host generated packets.
u32 flow_hash_seed
Seed for Jenkins hash used to compute ip4 flow hash.
ip4_address_t * ip4_interface_first_address(ip4_main_t *im, u32 sw_if_index, ip_interface_address_t **result_ia)
int vnet_set_ip4_classify_intfc(vlib_main_t *vm, u32 sw_if_index, u32 table_index)
void ip4_punt_redirect_add_paths(u32 rx_sw_if_index, const fib_route_path_t *paths)
vl_api_interface_index_t sw_if_index
struct ip4_mfib_t ip4_mfib_t
uword ip4_udp_register_listener(vlib_main_t *vm, u16 dst_port, u32 next_node_index)
VLIB buffer representation.