Searched refs:im (Results 1 - 25 of 143) sorted by relevance

123456

/vpp/src/vnet/ipsec/
H A Dipsec.c35 ipsec_main_t *im = &ipsec_main; local
40 if (!vnet_crypto_is_set_handler (im->integ_algs[sa->integ_alg].alg))
50 ipsec_main_t *im = &ipsec_main; local
54 if (!vnet_crypto_is_set_handler (im->integ_algs[sa->integ_alg].alg))
60 if (!vnet_crypto_is_set_handler (im->crypto_algs[sa->crypto_alg].alg))
69 ipsec_add_del_sa_sess_cb (ipsec_main_t * im, u32 sa_index, u8 is_add) argument
72 pool_elt_at_index (im->ah_backends, im->ah_current_backend);
80 pool_elt_at_index (im->esp_backends, im
91 ipsec_check_support_cb(ipsec_main_t * im, ipsec_sa_t * sa) argument
141 ipsec_main_t *im = &ipsec_main; local
166 ipsec_main_t *im = &ipsec_main; local
183 ipsec_register_ah_backend(vlib_main_t * vm, ipsec_main_t * im, const char *name, const char *ah4_encrypt_node_name, const char *ah4_decrypt_node_name, const char *ah6_encrypt_node_name, const char *ah6_decrypt_node_name, check_support_cb_t ah_check_support_cb, add_del_sa_sess_cb_t ah_add_del_sa_sess_cb) argument
211 ipsec_register_esp_backend(vlib_main_t * vm, ipsec_main_t * im, const char *name, const char *esp4_encrypt_node_name, const char *esp4_encrypt_node_tun_name, const char *esp4_decrypt_node_name, const char *esp4_decrypt_tun_node_name, const char *esp6_encrypt_node_name, const char *esp6_encrypt_node_tun_name, const char *esp6_decrypt_node_name, const char *esp6_decrypt_tun_node_name, check_support_cb_t esp_check_support_cb, add_del_sa_sess_cb_t esp_add_del_sa_sess_cb, enable_disable_cb_t enable_disable_cb) argument
258 ipsec_rsc_in_use(ipsec_main_t * im) argument
270 ipsec_select_ah_backend(ipsec_main_t * im, u32 backend_idx) argument
293 ipsec_select_esp_backend(ipsec_main_t * im, u32 backend_idx) argument
341 ipsec_main_t *im = &ipsec_main; local
392 ipsec_main_t *im = &ipsec_main; local
[all...]
H A Dipsec_spd.c22 ipsec_main_t *im = &ipsec_main; local
27 p = hash_get (im->spd_index_by_spd_id, spd_id);
36 spd = pool_elt_at_index (im->spds, spd_index);
40 hash_foreach (k, v, im->spd_index_by_sw_if_index, ({
45 hash_unset (im->spd_index_by_spd_id, spd_id);
49 pool_put (im->spds, spd);
53 pool_get (im->spds, spd);
55 spd_index = spd - im->spds;
57 hash_set (im->spd_index_by_spd_id, spd_id, spd_index);
66 ipsec_main_t *im local
[all...]
H A Dipsec_sa.c34 ipsec_call_add_del_callbacks (ipsec_main_t * im, ipsec_sa_t * sa, argument
42 ab = pool_elt_at_index (im->ah_backends, im->ah_current_backend);
47 eb = pool_elt_at_index (im->esp_backends, im->esp_current_backend);
74 ipsec_main_t *im = &ipsec_main; local
87 im->ah6_encrypt_node_index :
88 im->ah4_encrypt_node_index), &sa->dpo, &tmp);
91 im->esp6_encrypt_node_index :
92 im
99 ipsec_main_t *im = &ipsec_main; local
118 ipsec_main_t *im = &ipsec_main; local
185 ipsec_main_t *im = &ipsec_main; local
357 ipsec_main_t *im = &ipsec_main; local
383 ipsec_main_t *im = &ipsec_main; local
397 ipsec_main_t *im = &ipsec_main; local
411 ipsec_main_t *im = &ipsec_main; local
430 ipsec_main_t *im = &ipsec_main; local
452 ipsec_main_t *im = &ipsec_main; local
470 ipsec_main_t *im; local
[all...]
H A Dipsec_handoff.c64 ipsec_main_t *im; local
66 im = &ipsec_main;
97 sa0 = pool_elt_at_index (im->sad, sai0);
98 sa1 = pool_elt_at_index (im->sad, sai1);
99 sa2 = pool_elt_at_index (im->sad, sai2);
100 sa3 = pool_elt_at_index (im->sad, sai3);
155 sa0 = pool_elt_at_index (im->sad, sai0);
189 ipsec_main_t *im = &ipsec_main; local
191 return ipsec_handoff (vm, node, from_frame, im->esp4_enc_fq_index, true);
198 ipsec_main_t *im local
207 ipsec_main_t *im = &ipsec_main; local
217 ipsec_main_t *im = &ipsec_main; local
227 ipsec_main_t *im = &ipsec_main; local
236 ipsec_main_t *im = &ipsec_main; local
245 ipsec_main_t *im = &ipsec_main; local
255 ipsec_main_t *im = &ipsec_main; local
265 ipsec_main_t *im = &ipsec_main; local
274 ipsec_main_t *im = &ipsec_main; local
283 ipsec_main_t *im = &ipsec_main; local
292 ipsec_main_t *im = &ipsec_main; local
[all...]
H A Dipsec_tun.c131 ipsec_main_t *im; local
138 im = &ipsec_main;
143 im->esp4_no_crypto_tun_node_index :
144 im->esp6_no_crypto_tun_node_index);
147 im->esp4_encrypt_l2_tun_node_index :
148 im->esp6_encrypt_l2_tun_node_index);
151 im->esp4_encrypt_tun_node_index :
152 im->esp6_encrypt_tun_node_index);
199 ipsec_tun_protect_rx_db_add (ipsec_main_t * im, argument
228 hash_set (im
313 ipsec_tun_protect_rx_db_remove(ipsec_main_t * im, const ipsec_tun_protect_t * itp) argument
421 ipsec_tun_protect_config(ipsec_main_t * im, ipsec_tun_protect_t * itp, u32 sa_out, u32 * sas_in) argument
452 ipsec_tun_protect_unconfig(ipsec_main_t * im, ipsec_tun_protect_t * itp) argument
495 ipsec_main_t *im; local
544 ipsec_main_t *im; local
603 ipsec_main_t *im; local
736 ipsec_main_t *im; local
923 ipsec_main_t *im; local
[all...]
H A Dipsec_spd_policy.c86 ipsec_main_t *im = &ipsec_main; local
91 p1 = pool_elt_at_index (im->policies, *id1);
92 p2 = pool_elt_at_index (im->policies, *id2);
143 ipsec_main_t *im = &ipsec_main; local
149 p = hash_get (im->spd_index_by_spd_id, policy->id);
155 spd = pool_elt_at_index (im->spds, spd_index);
174 pool_get (im->policies, vp);
176 policy_index = vp - im->policies;
193 vp = pool_elt_at_index (im->policies,
199 pool_put (im
[all...]
H A Dipsec_cli.c34 ipsec_main_t *im = &ipsec_main; local
44 (line_input, "%U %u", unformat_vnet_sw_interface, im->vnet_main,
370 ipsec_sa_show_all (vlib_main_t * vm, ipsec_main_t * im, u8 detail) argument
375 pool_foreach_index (sai, im->sad, ({
383 ipsec_spd_show_all (vlib_main_t * vm, ipsec_main_t * im) argument
388 pool_foreach_index (spdi, im->spds, ({
395 ipsec_spd_bindings_show_all (vlib_main_t * vm, ipsec_main_t * im) argument
403 hash_foreach(sw_if_index, spd_id, im->spd_index_by_sw_if_index, ({
404 spd = pool_elt_at_index (im->spds, spd_id);
406 format_vnet_sw_if_index_name, im
430 ipsec_main_t *im = &ipsec_main; local
455 ipsec_main_t *im = &ipsec_main; local
482 ipsec_main_t *im = &ipsec_main; local
530 ipsec_main_t *im = &ipsec_main; local
585 ipsec_main_t *im = &ipsec_main; local
653 ipsec_main_t *im = &ipsec_main; local
1011 ipsec_main_t *im = &ipsec_main; local
[all...]
H A Dipsec_input.c78 ipsec_main_t *im = &ipsec_main; local
84 p = pool_elt_at_index (im->policies, *i);
106 ipsec_main_t *im = &ipsec_main; local
113 p = pool_elt_at_index (im->policies, *i);
114 s = pool_elt_at_index (im->sad, p->sa_index);
162 ipsec_main_t *im = &ipsec_main; local
169 p = pool_elt_at_index (im->policies, *i);
170 s = pool_elt_at_index (im->sad, p->sa_index);
204 ipsec_main_t *im = &ipsec_main; local
239 spd0 = pool_elt_at_index (im
484 ipsec_main_t *im = &ipsec_main; local
[all...]
H A Dipsec_output.c72 ipsec_main_t *im = &ipsec_main; local
81 p = pool_elt_at_index (im->policies, *i);
134 ipsec_main_t *im = &ipsec_main; local
143 p = pool_elt_at_index (im->policies, *i);
180 ipsec_main_t *im = &ipsec_main; local
224 uword *p = hash_get (im->spd_index_by_sw_if_index, sw_if_index0);
227 spd0 = pool_elt_at_index (im->spds, spd_index0);
281 pi0 = p0 - im->policies;
300 sa = pool_elt_at_index (im->sad, p0->sa_index);
303 next_node_index = im
[all...]
/vpp/src/vnet/ip/
H A Dip_init.c47 ip_main_t *im = &ip_main; local
50 clib_memset (im, 0, sizeof (im[0]));
58 vec_add2 (im->protocol_infos, pi, 1); \
67 im->protocol_info_by_name = hash_create_string (0, sizeof (uword));
68 for (i = 0; i < vec_len (im->protocol_infos); i++)
70 pi = im->protocol_infos + i;
72 hash_set_mem (im->protocol_info_by_name, pi->name, i);
73 hash_set (im->protocol_info_by_protocol, pi->protocol, i);
91 vec_resize (im
[all...]
H A Dformat.c47 ip_main_t *im = &ip_main; local
48 ip_protocol_info_t *pi = ip_get_protocol_info (im, protocol);
60 ip_main_t *im = &ip_main; local
65 im->protocol_info_by_name, &i))
68 pi = vec_elt_at_index (im->protocol_infos, i);
77 ip_main_t *im = &ip_main; local
80 pi = ip_get_tcp_udp_port_info (im, port);
93 ip_main_t *im = &ip_main; local
99 im->port_info_by_name, &i))
101 pi = vec_elt_at_index (im
[all...]
H A Dip6_forward.c64 ip6_add_interface_prefix_routes (ip6_main_t * im, argument
69 ip_lookup_main_t *lm = &im->lookup_main;
79 address->as_u64[0] & im->fib_masks[address_length].as_u64[0],
80 address->as_u64[1] & im->fib_masks[address_length].as_u64[1],
123 ip6_main_t * im, u32 fib_index,
126 ip_lookup_main_t *lm = &im->lookup_main;
135 ip6_add_interface_prefix_routes (im, sw_if_index, fib_index,
171 ip6_del_interface_prefix_routes (ip6_main_t * im, argument
176 ip_lookup_main_t *lm = &im->lookup_main;
186 address->as_u64[0] & im
122 ip6_add_interface_routes(vnet_main_t * vnm, u32 sw_if_index, ip6_main_t * im, u32 fib_index, ip_interface_address_t * a) argument
220 ip6_del_interface_routes(u32 sw_if_index, ip6_main_t * im, u32 fib_index, ip6_address_t * address, u32 address_length) argument
241 ip6_main_t *im = &ip6_main; local
278 ip6_interface_first_address(ip6_main_t * im, u32 sw_if_index) argument
303 ip6_main_t *im = &ip6_main; local
528 ip6_main_t *im = &ip6_main; local
695 ip6_main_t *im = &ip6_main; local
758 ip6_main_t *im = &ip6_main; local
1008 ip6_main_t *im = &ip6_main; local
1194 ip6_urpf_loose_check(ip6_main_t * im, vlib_buffer_t * b, ip6_header_t * i) argument
1282 ip6_main_t *im = &ip6_main; local
1667 ip6_main_t *im = &ip6_main; local
1678 ip6_main_t *im = &ip6_main; local
2730 ip6_main_t *im = &ip6_main; local
2751 ip6_main_t *im = &ip6_main; local
2787 ip6_main_t *im = &ip6_main; local
2999 ip6_main_t *im = &ip6_main; local
3049 vnet_interface_main_t *im = &vnm->interface_main; local
3171 ip6_main_t *im = &ip6_main; local
[all...]
H A Dip4.h66 (struct ip4_main_t * im,
79 (struct ip4_main_t * im, uword opaque, u32 sw_if_index, u32 is_enable);
88 (struct ip4_main_t * im,
200 ip4_destination_matches_route (const ip4_main_t * im, argument
204 return 0 == ((key->data_u32 ^ dest->data_u32) & im->fib_masks[dest_length]);
208 ip4_destination_matches_interface (ip4_main_t * im, argument
212 ip4_address_t *a = ip_interface_address_get_address (&im->lookup_main, ia);
213 return ip4_destination_matches_route (im, key, a, ia->address_length);
238 ip4_interface_address_matching_destination (ip4_main_t * im, argument
244 ip_lookup_main_t *lm = &im
[all...]
/vpp/src/plugins/igmp/
H A Digmp_api.c132 send_igmp_details (vl_api_registration_t * rp, igmp_main_t * im, argument
151 igmp_config_dump (igmp_main_t * im, argument
163 send_igmp_details (rp, im, config, group, src, context);
172 igmp_main_t *im = &igmp_main; local
185 pool_foreach (config, im->configs,
187 igmp_config_dump(im, rp, mp->context, config);
196 igmp_config_dump (im, rp, mp->context, config);
300 igmp_api_client_lookup (igmp_main_t * im, u32 client_index) argument
305 p = hash_get (im->igmp_api_client_by_client_index, client_index);
307 api_client = vec_elt_at_index (im
315 igmp_main_t *im = &igmp_main; local
352 igmp_main_t *im = &igmp_main; local
394 igmp_main_t *im; local
420 igmp_main_t *im = &igmp_main; local
[all...]
H A Digmp.c343 igmp_main_t *im = &igmp_main; local
377 vec_validate_init_empty (im->igmp_config_by_sw_if_index,
379 pool_get (im->configs, config);
402 im->igmp_config_by_sw_if_index[config->sw_if_index] =
403 (config - im->configs);
405 vec_validate (im->n_configs_per_mfib_index, mfib_index);
406 im->n_configs_per_mfib_index[mfib_index]++;
407 if (1 == im->n_configs_per_mfib_index[mfib_index])
427 vec_validate (im->n_configs_per_mfib_index, mfib_index);
428 im
480 igmp_main_t *im = &igmp_main; local
[all...]
H A Digmp_config.c47 igmp_main_t *im; local
49 im = &igmp_main;
51 if (vec_len (im->igmp_config_by_sw_if_index) > sw_if_index)
55 index = im->igmp_config_by_sw_if_index[sw_if_index];
58 return (vec_elt_at_index (im->configs, index));
H A Digmp_query.c67 igmp_main_t *im; local
69 im = &igmp_main;
71 group = pool_elt_at_index (im->groups, obj);
72 config = pool_elt_at_index (im->configs, group->config);
142 igmp_main_t *im; local
144 im = &igmp_main;
145 config = pool_elt_at_index (im->configs, obj);
H A Digmp_proxy.c67 igmp_main_t *im = &igmp_main; local
69 if (vec_len (im->igmp_proxy_device_by_vrf_id) > vrf_id)
72 index = im->igmp_proxy_device_by_vrf_id[vrf_id];
74 return (vec_elt_at_index (im->proxy_devices, index));
82 igmp_main_t *im = &igmp_main; local
105 vec_validate_init_empty (im->igmp_proxy_device_by_vrf_id, vrf_id, ~0);
106 pool_get (im->proxy_devices, proxy_device);
107 im->igmp_proxy_device_by_vrf_id[vrf_id] =
108 proxy_device - im->proxy_devices;
126 im
[all...]
/vpp/extras/libmemif/examples/icmp_responder-mt_3-1/
H A Dmain.c423 struct icmpr_main *im = &icmpr_main; local
427 printf ("%u Threads %u Memifs (per thread)\n", im->threads,
428 im->per_thread_if_num);
431 for (i = 0; i < im->threads; i++)
433 sh = im->ptd[i].socket_handle;
435 for (j = 0; j < im->per_thread_if_num; j++)
437 printf ("\tMemif id %u\n\t%s\n", im->ptd[i].conns[j].id,
438 im->ptd[i].conns[j].connected ? "Link up" : "Link down");
446 struct icmpr_main *im = &icmpr_main; local
453 memset (im,
[all...]
/vpp/src/plugins/builtinurl/
H A Dbuiltins.c78 u8 *format_vnet_sw_interface_cntrs (u8 * s, vnet_interface_main_t * im,
81 vnet_interface_main_t *im = &vnm->interface_main; local
89 p = hash_get (im->hw_interface_by_name, request);
104 pool_foreach (hi, im->hw_interfaces,
152 vnet_interface_main_t *im = &vnm->interface_main; local
159 pool_foreach (hi, im->hw_interfaces,
162 if (hi - im->hw_interfaces)
163 vec_add1 (hw_if_indices, hi - im->hw_interfaces);
173 hi = pool_elt_at_index (im->hw_interfaces, hw_if_indices[i]);
/vpp/src/plugins/unittest/
H A Dipsec_test.c41 ipsec_main_t *im = &ipsec_main; local
46 sa = pool_elt_at_index (im->sad, sa_index);
/vpp/src/vnet/ethernet/
H A Dp2p_ethernet.c56 vnet_interface_main_t *im = &vnm->interface_main; local
77 p = hash_get_mem (im->sw_if_index_by_sup_and_sub, &sup_and_sub_key);
103 vnet_interface_counter_lock (im);
105 for (i = 0; i < vec_len (im->sw_if_counters); i++)
107 vlib_validate_simple_counter (&im->sw_if_counters[i],
109 vlib_zero_simple_counter (&im->sw_if_counters[i],
113 for (i = 0; i < vec_len (im->combined_sw_if_counters); i++)
115 vlib_validate_combined_counter (&im->combined_sw_if_counters
117 vlib_zero_combined_counter (&im->combined_sw_if_counters[i],
121 vnet_interface_counter_unlock (im);
124 vnet_interface_main_t *im = &vnm->interface_main; local
[all...]
/vpp/src/vnet/ipip/
H A Dipip_api.c30 #define REPLY_MSG_ID_BASE im->msg_id_base
36 ipip_main_t *im = &ipip_main; local
100 ipip_main_t *im = &ipip_main; local
111 ipip_main_t *im = &ipip_main; local
137 ipip_main_t *im = &ipip_main; local
146 pool_foreach(t, im->tunnels,
163 ipip_main_t *im = &ipip_main; local
200 ipip_main_t *im = &ipip_main; local
222 ipip_main_t *im = &ipip_main; local
227 im
[all...]
/vpp/src/vnet/
H A Dinterface.c130 vnet_interface_main_t *im = &vnm->interface_main; local
135 pool_foreach (hif, im->hw_interfaces, ({
143 pool_foreach (sif, im->sw_interfaces, ({
159 pool_foreach (hif, im->hw_interfaces, ({
193 vnet_interface_main_t *im = &vnm->interface_main; local
200 pool_foreach (hif, im->hw_interfaces, ({
202 p = hash_get_mem (im->hw_interface_class_by_name, class_name);
543 vnet_interface_main_t *im = &vnm->interface_main; local
547 pool_get (im->sw_interfaces, sw);
548 sw_if_index = sw - im
622 vnet_interface_main_t *im = &vnm->interface_main; local
634 vnet_interface_main_t *im = &vnm->interface_main; local
773 vnet_interface_main_t *im = &vnm->interface_main; local
982 vnet_interface_main_t *im = &vnm->interface_main; local
1075 vnet_interface_main_t *im; local
1093 vnet_interface_main_t *im; local
1268 vnet_interface_main_t *im = &vnm->interface_main; local
1395 vnet_interface_main_t *im = &vnm->interface_main; local
1422 vnet_interface_main_t *im = &vnm->interface_main; local
[all...]
/vpp/src/vnet/mfib/
H A Dip4_mfib.h93 ip4_main_t * im = &ip4_main; local
96 p = hash_get (im->mfib_index_by_table_id, table_id);

Completed in 17 milliseconds

123456