FD.io VPP
v16.09
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | ip4_input_trace_t |
Enumerations | |
enum | ip4_input_next_t { IP4_INPUT_NEXT_DROP, IP4_INPUT_NEXT_PUNT, IP4_INPUT_NEXT_LOOKUP, IP4_INPUT_NEXT_LOOKUP_MULTICAST, IP4_INPUT_NEXT_ICMP_ERROR, IP4_INPUT_N_NEXT } |
Functions | |
static u8 * | format_ip4_input_trace (u8 *s, va_list *va) |
static uword | ip4_input_inline (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, int verify_checksum) |
static uword | ip4_input (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
IPv4 input node. More... | |
static uword | ip4_input_no_checksum (vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame) |
static clib_error_t * | ip4_init (vlib_main_t *vm) |
Variables | |
static char * | ip4_error_strings [] |
vlib_node_registration_t | ip4_input_node |
(constructor) VLIB_REGISTER_NODE (ip4_input_node) More... | |
static vlib_node_registration_t | ip4_input_no_checksum_node |
(constructor) VLIB_REGISTER_NODE (ip4_input_no_checksum_node) More... | |
enum ip4_input_next_t |
Enumerator | |
---|---|
IP4_INPUT_NEXT_DROP | |
IP4_INPUT_NEXT_PUNT | |
IP4_INPUT_NEXT_LOOKUP | |
IP4_INPUT_NEXT_LOOKUP_MULTICAST | |
IP4_INPUT_NEXT_ICMP_ERROR | |
IP4_INPUT_N_NEXT |
Definition at line 62 of file ip4_input.c.
|
static |
Definition at line 431 of file ip4_input.c.
|
static |
IPv4 input node.
ip4-input
This is the IPv4 input node: validates ip4 header checksums, verifies ip header lengths, discards pkts with expired TTLs, and sends pkts to the set of ip feature nodes configured on the rx interface.
vm | vlib_main_t corresponding to the current thread |
node | vlib_node_runtime_t |
frame | vlib_frame_t whose contents should be dispatched |
Uses:
b->current_config_index
corresponding to each pkt's rx sw_if_index.vnet_buffer(b)->sw_if_index[VLIB_RX]
sw_if_index
value of the interface that the packet was received on.Sets:
vnet_buffer(b)->ip.adj_index[VLIB_TX]
Next Indices:
vnet_get_config_data (... &next0 ...);
or error-drop
Definition at line 367 of file ip4_input.c.
|
inlinestatic |
Definition at line 74 of file ip4_input.c.
|
static |
|
static |
Definition at line 382 of file ip4_input.c.
|
static |
(constructor) VLIB_REGISTER_NODE (ip4_input_no_checksum_node)
Definition at line 411 of file ip4_input.c.
vlib_node_registration_t ip4_input_node |
(constructor) VLIB_REGISTER_NODE (ip4_input_node)
Global ip4 input node.
Definition at line 388 of file ip4_input.c.