|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
56 #define ip_protocol(n,s) \
58 vec_add2 (im->protocol_infos, pi, 1); \
60 pi->name = (u8 *) #s; \
70 pi =
im->protocol_infos +
i;
80 static char *port_names[] = {
81 #define ip_port(s,n) #s,
85 static u16 ports[] = {
86 #define ip_port(s,n) n,
96 pi =
im->port_infos +
i;
97 pi->
port = clib_host_to_net_u16 (ports[
i]);
98 pi->
name = (
u8 *) port_names[
i];
109 .init_order =
VLIB_INITS (
"vnet_main_init",
"ip4_init",
"ip6_init",
110 "icmp4_init",
"icmp6_init",
"ip6_hop_by_hop_init",
111 "udp_local_init",
"udp_init",
"ip_classify_init",
112 "in_out_acl_init",
"policer_classify_init",
113 "flow_classify_init"),
vnet_interface_main_t * im
#define hash_set(h, key, value)
#define hash_create_string(elts, value_bytes)
#define hash_set_mem(h, key, value)
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
clib_error_t * ip_main_init(vlib_main_t *vm)
#define VLIB_INIT_FUNCTION(x)
#define vec_resize(V, N)
Resize a vector (no header, unspecified alignment) Add N elements to end of given vector V,...
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)