Home
last modified time | relevance | path

Searched refs:TC_CAST (Results 1 – 25 of 26) sorted by relevance

12

/external/libnl/tests/
Dtest-complex-HTB-with-hash-filters.c155 rtnl_tc_set_link(TC_CAST(cls), rtnlLink); in u32_add_filter_on_ht()
157 if ((err = rtnl_tc_set_kind(TC_CAST(cls), "u32"))) { in u32_add_filter_on_ht()
165 rtnl_tc_set_parent(TC_CAST(cls), TC_HANDLE(1, 0)); in u32_add_filter_on_ht()
207 rtnl_tc_set_link(TC_CAST(cls), rtnlLink); in u32_add_filter_on_ht_with_hashmask()
209 if ((err = rtnl_tc_set_kind(TC_CAST(cls), "u32"))) { in u32_add_filter_on_ht_with_hashmask()
217 rtnl_tc_set_parent(TC_CAST(cls), TC_HANDLE(1, 0)); in u32_add_filter_on_ht_with_hashmask()
253 rtnl_tc_set_link(TC_CAST(cls), rtnlLink); in u32_add_ht()
255 if ((err = rtnl_tc_set_kind(TC_CAST(cls), "u32"))) { in u32_add_ht()
262 rtnl_tc_set_parent(TC_CAST(cls), TC_HANDLE(1, 0)); in u32_add_ht()
292 rtnl_tc_set_link(TC_CAST(qdisc), rtnlLink); in qdisc_add_HTB()
[all …]
Dtest-u32-filter-with-actions.c116 rtnl_tc_set_link(TC_CAST(cls), rtnlLink); in u32_add_filter_on_ht_with_hashmask()
118 if ((err = rtnl_tc_set_kind(TC_CAST(cls), "u32"))) { in u32_add_filter_on_ht_with_hashmask()
126 rtnl_tc_set_parent(TC_CAST(cls), TC_HANDLE(0xffff, 0)); in u32_add_filter_on_ht_with_hashmask()
165 rtnl_tc_set_link(TC_CAST(cls), rtnlLink); in u32_add_ht()
167 if ((err = rtnl_tc_set_kind(TC_CAST(cls), "u32"))) { in u32_add_ht()
174 rtnl_tc_set_parent(TC_CAST(cls), TC_HANDLE(0xffff, 0)); in u32_add_ht()
205 rtnl_tc_set_link(TC_CAST(qdisc), rtnlLink); in qdisc_add_ingress()
206 rtnl_tc_set_parent(TC_CAST(qdisc), TC_H_ROOT); in qdisc_add_ingress()
212 rtnl_tc_set_handle(TC_CAST(qdisc), TC_HANDLE(0xffff, 0)); in qdisc_add_ingress()
214 if ((err = rtnl_tc_set_kind(TC_CAST(qdisc), "ingress"))) { in qdisc_add_ingress()
[all …]
/external/libnl/lib/route/qdisc/
Dnetem.c300 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_set_limit()
316 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_get_limit()
342 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_set_gap()
358 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_get_gap()
377 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_set_reorder_probability()
393 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_get_reorder_probability()
412 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_set_reorder_correlation()
428 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_get_reorder_correlation()
454 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_set_corruption_probability()
470 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_get_corruption_probability()
[all …]
Dfq_codel.c152 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_limit()
170 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_get_limit()
189 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_target()
207 if ((fq_codel = rtnl_tc_data(TC_CAST(qdisc))) && in rtnl_qdisc_fq_codel_get_target()
224 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_interval()
242 if ((fq_codel = rtnl_tc_data(TC_CAST(qdisc))) && in rtnl_qdisc_fq_codel_get_interval()
259 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_quantum()
277 if ((fq_codel = rtnl_tc_data(TC_CAST(qdisc))) && in rtnl_qdisc_fq_codel_get_quantum()
294 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_flows()
312 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_get_flows()
[all …]
Ddsmark.c195 if (!(dsmark = rtnl_tc_data(TC_CAST(class)))) in rtnl_class_dsmark_set_bitmask()
213 if (!(dsmark = rtnl_tc_data(TC_CAST(class)))) in rtnl_class_dsmark_get_bitmask()
232 if (!(dsmark = rtnl_tc_data(TC_CAST(class)))) in rtnl_class_dsmark_set_value()
250 if (!(dsmark = rtnl_tc_data(TC_CAST(class)))) in rtnl_class_dsmark_get_value()
275 if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_dsmark_set_indices()
293 if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_dsmark_get_indices()
313 if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_dsmark_set_default_index()
331 if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_dsmark_get_default_index()
350 if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_dsmark_set_set_tc_index()
369 if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_dsmark_get_set_tc_index()
Dtbf.c182 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_set_limit()
223 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_set_limit_by_latency()
253 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_get_limit()
282 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_set_rate()
306 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_get_rate()
324 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_get_rate_bucket()
342 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_get_rate_cell()
365 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_set_peakrate()
391 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_get_peakrate()
409 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_get_peakrate_bucket()
[all …]
Dsfq.c118 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_set_quantum()
134 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_get_quantum()
153 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_set_limit()
169 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_get_limit()
189 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_set_perturb()
205 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_get_perturb()
223 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_get_divisor()
Dplug.c98 if (!(plug = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_plug_buffer()
115 if (!(plug = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_plug_release_one()
132 if (!(plug = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_plug_release_indefinite()
149 if (!(plug = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_plug_set_limit()
Dprio.c133 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_set_bands()
149 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_get_bands()
171 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_set_priomap()
201 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_get_priomap()
Dfifo.c110 if (!(fifo = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fifo_set_limit()
128 if (!(fifo = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fifo_get_limit()
Dred.c140 if (!(red = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_red_set_limit()
156 if (!(red = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_red_get_limit()
Dhtb.c274 return rtnl_tc_data_check(TC_CAST(qdisc), &htb_qdisc_ops); in htb_qdisc_data()
279 return rtnl_tc_data_check(TC_CAST(class), &htb_class_ops); in htb_class_data()
/external/libnl/lib/route/
Dqdisc.c40 if ((err = rtnl_tc_msg_parse(n, TC_CAST(qdisc))) < 0) in qdisc_msg_parser()
70 tc = TC_CAST(nl_object_alloc(&qdisc_obj_ops)); in rtnl_qdisc_alloc()
97 return rtnl_tc_msg_build(TC_CAST(qdisc), type, flags, result); in build_qdisc_msg()
208 rtnl_tc_set_ifindex(TC_CAST(new), qdisc->q_ifindex); in rtnl_qdisc_build_update_request()
211 rtnl_tc_set_handle(TC_CAST(new), qdisc->q_handle); in rtnl_qdisc_build_update_request()
214 rtnl_tc_set_parent(TC_CAST(new), qdisc->q_parent); in rtnl_qdisc_build_update_request()
459 rtnl_tc_set_parent(TC_CAST(filter), qdisc->q_handle); in rtnl_qdisc_foreach_child()
460 rtnl_tc_set_ifindex(TC_CAST(filter), qdisc->q_ifindex); in rtnl_qdisc_foreach_child()
461 rtnl_tc_set_kind(TC_CAST(filter), qdisc->q_kind); in rtnl_qdisc_foreach_child()
482 rtnl_tc_set_ifindex(TC_CAST(filter), qdisc->q_ifindex); in rtnl_qdisc_foreach_cls()
[all …]
Dclass.c50 if ((err = rtnl_tc_msg_parse(nlh, TC_CAST(class))) < 0) in class_msg_parser()
80 tc = TC_CAST(nl_object_alloc(&class_obj_ops)); in rtnl_class_alloc()
112 return rtnl_tc_msg_build(TC_CAST(class), type, flags, result); in class_build()
392 rtnl_tc_set_parent(TC_CAST(filter), class->c_handle); in rtnl_class_foreach_child()
393 rtnl_tc_set_ifindex(TC_CAST(filter), class->c_ifindex); in rtnl_class_foreach_child()
394 rtnl_tc_set_kind(TC_CAST(filter), class->c_kind); in rtnl_class_foreach_child()
Dtc.c735 struct rtnl_tc *tc = TC_CAST(obj); in rtnl_tc_free_data()
753 struct rtnl_tc *dst = TC_CAST(dstobj); in rtnl_tc_clone()
754 struct rtnl_tc *src = TC_CAST(srcobj); in rtnl_tc_clone()
818 struct rtnl_tc *tc = TC_CAST(obj); in rtnl_tc_dump_line()
852 struct rtnl_tc *tc = TC_CAST(obj); in rtnl_tc_dump_details()
874 struct rtnl_tc *tc = TC_CAST(obj); in rtnl_tc_dump_stats()
913 struct rtnl_tc *a = TC_CAST(aobj); in rtnl_tc_compare()
914 struct rtnl_tc *b = TC_CAST(bobj); in rtnl_tc_compare()
Dcls.c47 err = rtnl_tc_msg_build(TC_CAST(cls), type, flags, result); in cls_build()
68 tc = TC_CAST(nl_object_alloc(&cls_obj_ops)); in rtnl_cls_alloc()
367 if ((err = rtnl_tc_msg_parse(nlh, TC_CAST(cls))) < 0) in cls_msg_parser()
Dact.c70 struct rtnl_tc *tc = TC_CAST(act); in rtnl_act_fill_one()
174 tc = TC_CAST(nl_object_alloc(&act_obj_ops)); in rtnl_act_alloc()
410 tc = TC_CAST(act); in rtnl_act_parse()
461 struct rtnl_tc *tc = TC_CAST(*act); in rtnl_act_msg_parse()
/external/libnl/lib/route/act/
Dmirred.c135 if (!(u = (struct rtnl_mirred *) rtnl_tc_data(TC_CAST(act)))) in rtnl_mirred_set_action()
158 if (!(u = (struct rtnl_mirred *) rtnl_tc_data(TC_CAST(act)))) in rtnl_mirred_get_action()
167 if (!(u = (struct rtnl_mirred *) rtnl_tc_data(TC_CAST(act)))) in rtnl_mirred_set_ifindex()
178 if ((u = (struct rtnl_mirred *) rtnl_tc_data(TC_CAST(act)))) in rtnl_mirred_get_ifindex()
187 if (!(u = (struct rtnl_mirred *) rtnl_tc_data(TC_CAST(act)))) in rtnl_mirred_set_policy()
210 if (!(u = (struct rtnl_mirred *) rtnl_tc_data(TC_CAST(act)))) in rtnl_mirred_get_policy()
/external/libnl/lib/route/cls/
Dbasic.c175 if (!(b = rtnl_tc_data(TC_CAST(cls)))) in rtnl_basic_set_target()
186 if (!(b = rtnl_tc_data(TC_CAST(cls)))) in rtnl_basic_get_target()
196 if (!(b = rtnl_tc_data(TC_CAST(cls)))) in rtnl_basic_set_ematch()
214 if (!(b = rtnl_tc_data(TC_CAST(cls)))) in rtnl_basic_get_ematch()
227 if (!(b = rtnl_tc_data(TC_CAST(cls)))) in rtnl_basic_add_action()
244 if (!(b = rtnl_tc_data(TC_CAST(cls)))) in rtnl_basic_del_action()
Du32.c371 if (!(u = rtnl_tc_data(TC_CAST(cls)))) in rtnl_u32_set_classid()
384 if (!(u = (struct rtnl_u32 *) rtnl_tc_data(TC_CAST(cls)))) in rtnl_u32_set_divisor()
396 if (!(u = (struct rtnl_u32 *) rtnl_tc_data(TC_CAST(cls)))) in rtnl_u32_set_link()
408 if (!(u = (struct rtnl_u32 *) rtnl_tc_data(TC_CAST(cls)))) in rtnl_u32_set_hashtable()
424 if (!(u = (struct rtnl_u32 *) rtnl_tc_data(TC_CAST(cls)))) in rtnl_u32_set_hashmask()
448 if (!(u = (struct rtnl_u32 *) rtnl_tc_data(TC_CAST(cls)))) in rtnl_u32_set_cls_terminal()
472 if (!(u = rtnl_tc_data(TC_CAST(cls)))) in rtnl_u32_add_action()
489 if (!(u = rtnl_tc_data(TC_CAST(cls)))) in rtnl_u32_del_action()
516 if (!(u = rtnl_tc_data(TC_CAST(cls)))) in rtnl_u32_set_flags()
550 if (!(u = rtnl_tc_data(TC_CAST(cls)))) in rtnl_u32_add_key()
[all …]
Dcgroup.c139 if (!(c = rtnl_tc_data(TC_CAST(cls)))) in rtnl_cgroup_set_ematch()
157 if (!(c = rtnl_tc_data(TC_CAST(cls)))) in rtnl_cgroup_get_ematch()
Dfw.c171 if (!(f = rtnl_tc_data(TC_CAST(cls)))) in rtnl_fw_set_classid()
184 if (!(f = rtnl_tc_data(TC_CAST(cls)))) in rtnl_fw_set_mask()
/external/libnl/src/
Dnl-tctree-list.c55 print_tc_childs(TC_CAST(class), arg + 2); in print_class()
71 rtnl_tc_set_parent(TC_CAST(filter), rtnl_tc_get_handle(tc)); in print_tc_childs()
72 rtnl_tc_set_ifindex(TC_CAST(filter), rtnl_tc_get_ifindex(tc)); in print_tc_childs()
88 print_tc_childs(TC_CAST(qdisc), arg + 2); in print_qdisc()
/external/libnl/include/netlink/route/
Dtc.h56 #define TC_CAST(ptr) ((struct rtnl_tc *) (ptr)) macro
/external/libnl/doc/
Droute.txt1282 then casted to `struct rtnl_tc` using the `TC_CAST()` macro.
1295 /* Cast the qdisc to a tc object using TC_CAST() to use rtnl_tc_ functions. */
1296 rtnl_tc_set_mpu(TC_CAST(qdisc), 64);
1446 drops = rtnl_tc_get_stat(TC_CAST(qdisc), RTNL_TC_DROPS);
1447 qlen = rtnl_tc_get_stat(TC_CAST(qdisc), RTNL_TC_QLEN);
1662 rtnl_tc_set_link(TC_CAST(qdisc), eth0_obj);
1665 rtnl_tc_set_parent(TC_CAST(qdisc), TC_H_ROOT);
1668 rtnl_tc_set_handle(TC_CAST(qdisc), TC_HANDLE(1, 0));
1671 rtnl_tc_set_kind(TC_CAST(qdisc), "htb");
1733 rtnl_tc_set_link(TC_CAST(qdisc), eth0_obj);
[all …]

12