56 #define ip_protocol(n,s) \ 58 vec_add2 (im->protocol_infos, pi, 1); \ 60 pi->name = (u8 *) #s; \ 80 static char *port_names[] = {
81 #define ip_port(s,n) #s, 85 static u16 ports[] = {
86 #define ip_port(s,n) n, 97 pi->
port = clib_host_to_net_u16 (ports[i]);
98 pi->
name = (
u8 *) port_names[i];
116 "ip6_hop_by_hop_init",
121 "policer_classify_init",
122 "flow_classify_init",
uword * protocol_info_by_name
uword * protocol_info_by_protocol
#define hash_set(h, key, value)
uword * port_info_by_name
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
#define hash_set_mem(h, key, value)
#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...
#define hash_create_string(elts, value_bytes)
uword * port_info_by_port
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
ip_protocol_info_t * protocol_infos
sll srl srl sll sra u16x4 i
vnet_interface_main_t * im
clib_error_t * ip_main_init(vlib_main_t *vm)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
tcp_udp_port_info_t * port_infos