50 memset (im, 0,
sizeof (im[0]));
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];
uword * protocol_info_by_name
uword * protocol_info_by_protocol
#define hash_set(h, key, value)
static clib_error_t * ip_classify_init(vlib_main_t *vm)
sll srl srl sll sra u16x4 i
clib_error_t * udp_local_init(vlib_main_t *vm)
uword * port_info_by_name
static clib_error_t * udp_init(vlib_main_t *vm)
clib_error_t * vnet_main_init(vlib_main_t *vm)
#define hash_set_mem(h, key, value)
#define VLIB_INIT_FUNCTION(x)
static clib_error_t * flow_classify_init(vlib_main_t *vm)
static clib_error_t * icmp6_init(vlib_main_t *vm)
#define vec_resize(V, N)
Resize a vector (no header, unspecified alignment) Add N elements to end of given vector V...
#define vlib_call_init_function(vm, x)
static clib_error_t * policer_classify_init(vlib_main_t *vm)
#define hash_create_string(elts, value_bytes)
uword * port_info_by_port
static clib_error_t * icmp4_init(vlib_main_t *vm)
static clib_error_t * ip6_hop_by_hop_init(vlib_main_t *vm)
static clib_error_t * dns_init(vlib_main_t *vm)
ip_protocol_info_t * protocol_infos
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