Home
last modified time | relevance | path

Searched refs:RTA_PAYLOAD (Results 1 – 25 of 44) sorted by relevance

12

/external/iproute2/tc/
Dq_dsmark.c138 parse_rtattr(tb, TCA_DSMARK_MAX, RTA_DATA(opt), RTA_PAYLOAD(opt)); in dsmark_print_opt()
140 if (!RTA_PAYLOAD(tb[TCA_DSMARK_MASK])) in dsmark_print_opt()
146 if (!RTA_PAYLOAD(tb[TCA_DSMARK_VALUE])) in dsmark_print_opt()
152 if (RTA_PAYLOAD(tb[TCA_DSMARK_INDICES]) < sizeof(__u16)) in dsmark_print_opt()
158 if (RTA_PAYLOAD(tb[TCA_DSMARK_DEFAULT_INDEX]) < sizeof(__u16)) in dsmark_print_opt()
Df_tcindex.c135 if (RTA_PAYLOAD(tb[TCA_TCINDEX_HASH]) < sizeof(hash)) in tcindex_print_opt()
143 if (RTA_PAYLOAD(tb[TCA_TCINDEX_MASK]) < sizeof(mask)) in tcindex_print_opt()
151 if (RTA_PAYLOAD(tb[TCA_TCINDEX_SHIFT]) < sizeof(shift)) in tcindex_print_opt()
159 if (RTA_PAYLOAD(tb[TCA_TCINDEX_FALL_THROUGH]) < in tcindex_print_opt()
Dq_atm.c201 if (RTA_PAYLOAD(tb[TCA_ATM_ADDR]) < in atm_print_opt()
215 for (i = 0; i < RTA_PAYLOAD(tb[TCA_ATM_HDR]); i++) in atm_print_opt()
224 if (RTA_PAYLOAD(tb[TCA_ATM_EXCESS]) < sizeof(excess)) in atm_print_opt()
241 if (RTA_PAYLOAD(tb[TCA_ATM_STATE]) < sizeof(state)) in atm_print_opt()
Dq_hfsc.c109 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in hfsc_print_opt()
126 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in hfsc_print_xstats()
245 if (RTA_PAYLOAD(tb[TCA_HFSC_RSC]) < sizeof(*rsc)) in hfsc_print_class_opt()
251 if (RTA_PAYLOAD(tb[TCA_HFSC_FSC]) < sizeof(*fsc)) in hfsc_print_class_opt()
257 if (RTA_PAYLOAD(tb[TCA_HFSC_USC]) < sizeof(*usc)) in hfsc_print_class_opt()
Dq_cbq.c453 if (RTA_PAYLOAD(tb[TCA_CBQ_RATE]) < sizeof(*r)) in cbq_print_opt()
459 if (RTA_PAYLOAD(tb[TCA_CBQ_LSSOPT]) < sizeof(*lss)) in cbq_print_opt()
465 if (RTA_PAYLOAD(tb[TCA_CBQ_WRROPT]) < sizeof(*wrr)) in cbq_print_opt()
471 if (RTA_PAYLOAD(tb[TCA_CBQ_FOPT]) < sizeof(*fopt)) in cbq_print_opt()
477 if (RTA_PAYLOAD(tb[TCA_CBQ_OVL_STRATEGY]) < sizeof(*ovl)) in cbq_print_opt()
479 (unsigned) RTA_PAYLOAD(tb[TCA_CBQ_OVL_STRATEGY]), in cbq_print_opt()
563 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in cbq_print_xstats()
Dtc.c57 if (opt && RTA_PAYLOAD(opt)) in print_noqopt()
59 (unsigned) RTA_PAYLOAD(opt)); in print_noqopt()
74 if (opt && RTA_PAYLOAD(opt)) in print_nofopt()
76 fhandle, (unsigned) RTA_PAYLOAD(opt)); in print_nofopt()
Dq_sfq.c88 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in sfq_print_opt()
108 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in sfq_print_xstats()
Dq_netem.c310 int len = RTA_PAYLOAD(opt) - sizeof(qopt); in netem_print_opt()
328 if (RTA_PAYLOAD(tb[TCA_NETEM_CORR]) < sizeof(*cor)) in netem_print_opt()
333 if (RTA_PAYLOAD(tb[TCA_NETEM_REORDER]) < sizeof(*reorder)) in netem_print_opt()
338 if (RTA_PAYLOAD(tb[TCA_NETEM_CORRUPT]) < sizeof(*corrupt)) in netem_print_opt()
Dtc_util.c503 memcpy(&bs, RTA_DATA(tbs[TCA_STATS_BASIC]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_BASIC]), sizeof(bs))); in print_tcstats2_attr()
510 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q))); in print_tcstats2_attr()
517 …memcpy(&re, RTA_DATA(tbs[TCA_STATS_RATE_EST]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_RATE_EST]), sizeof(re… in print_tcstats2_attr()
524 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q))); in print_tcstats2_attr()
551 memcpy(&st, RTA_DATA(tb[TCA_STATS]), MIN(RTA_PAYLOAD(tb[TCA_STATS]), sizeof(st))); in print_tcstats_attr()
Dtc_stab.c129 MIN(RTA_PAYLOAD(tb[TCA_STAB_BASE]), sizeof(s))); in print_size_table()
149 dlen = RTA_PAYLOAD(tb[TCA_STAB_DATA]) / sizeof(__u16); in print_size_table()
Dem_meta.c446 if (RTA_PAYLOAD(rta) < sizeof(__u32)) { in print_value()
455 print_binary(fd, RTA_DATA(rta), RTA_PAYLOAD(rta)); in print_value()
484 if (RTA_PAYLOAD(rta) < sizeof(__u32)) in print_object()
515 if (RTA_PAYLOAD(tb[TCA_EM_META_HDR]) < sizeof(*meta_hdr)) { in meta_print_eopt()
Dq_red.c162 if (RTA_PAYLOAD(tb[TCA_RED_PARMS]) < sizeof(*qopt)) in red_print_opt()
187 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in red_print_xstats()
Dq_htb.c259 if (RTA_PAYLOAD(tb[TCA_HTB_PARMS]) < sizeof(*hopt)) return -1; in htb_print_opt()
292 if (RTA_PAYLOAD(tb[TCA_HTB_INIT]) < sizeof(*gopt)) return -1; in htb_print_opt()
308 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in htb_print_xstats()
Dq_multiq.c71 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in multiq_print_opt()
Dq_fifo.c68 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in fifo_print_opt()
/external/iproute2/ip/
Diplink_vlan.c152 rem = RTA_PAYLOAD(attr); in vlan_print_map()
183 RTA_PAYLOAD(tb[IFLA_VLAN_ID]) < sizeof(__u16)) in vlan_print_opt()
189 if (RTA_PAYLOAD(tb[IFLA_VLAN_FLAGS]) < sizeof(*flags)) in vlan_print_opt()
Diprule.c89 RTA_PAYLOAD(tb[FRA_SRC]), in print_rule()
96 RTA_PAYLOAD(tb[FRA_SRC]), in print_rule()
110 RTA_PAYLOAD(tb[FRA_DST]), in print_rule()
117 RTA_PAYLOAD(tb[FRA_DST]), in print_rule()
175 RTA_PAYLOAD(tb[RTA_GATEWAY]), in print_rule()
Dipxfrm.c680 XFRMA_ALG_AUTH, RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print()
686 RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print()
692 XFRMA_ALG_CRYPT, RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print()
698 XFRMA_ALG_COMP, RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print()
709 if (RTA_PAYLOAD(tb[XFRMA_ENCAP]) < sizeof(*e)) { in xfrm_xfrma_print()
741 RTA_PAYLOAD(rta), family, fp, prefix); in xfrm_xfrma_print()
754 if (RTA_PAYLOAD(tb[XFRMA_COADDR]) < sizeof(*coa)) { in xfrm_xfrma_print()
774 if (RTA_PAYLOAD(tb[XFRMA_LASTUSED]) < sizeof(lastused)) { in xfrm_xfrma_print()
906 if (RTA_PAYLOAD(tb[XFRMA_POLICY_TYPE]) < sizeof(*upt)) in xfrm_policy_info_print()
Diproute.c302 RTA_PAYLOAD(tb[RTA_DST]), in print_route()
309 RTA_PAYLOAD(tb[RTA_DST]), in print_route()
322 RTA_PAYLOAD(tb[RTA_SRC]), in print_route()
329 RTA_PAYLOAD(tb[RTA_SRC]), in print_route()
345 RTA_PAYLOAD(tb[RTA_GATEWAY]), in print_route()
366 RTA_PAYLOAD(tb[RTA_PREFSRC]), in print_route()
475 RTA_PAYLOAD(tb[RTA_METRICS])); in print_route()
529 len = RTA_PAYLOAD(tb[RTA_MULTIPATH]); in print_route()
548 RTA_PAYLOAD(tb[RTA_GATEWAY]), in print_route()
655 addattr_l(n, 1024, RTA_MULTIPATH, RTA_DATA(rta), RTA_PAYLOAD(rta)); in parse_nexthops()
[all …]
Dipaddress.c294 RTA_PAYLOAD(tb[IFLA_ADDRESS]), in print_linkinfo()
304 RTA_PAYLOAD(tb[IFLA_BROADCAST]), in print_linkinfo()
419 int rem = RTA_PAYLOAD(vflist); in print_linkinfo()
499 memcpy(&dst.data, RTA_DATA(rta_tb[IFA_LOCAL]), RTA_PAYLOAD(rta_tb[IFA_LOCAL])); in print_addrinfo()
543 RTA_PAYLOAD(rta_tb[IFA_LOCAL]), in print_addrinfo()
553 RTA_PAYLOAD(rta_tb[IFA_ADDRESS]), in print_addrinfo()
563 RTA_PAYLOAD(rta_tb[IFA_BROADCAST]), in print_addrinfo()
570 RTA_PAYLOAD(rta_tb[IFA_ANYCAST]), in print_addrinfo()
920 memcpy(&dst.data, RTA_DATA(tb[IFA_LOCAL]), RTA_PAYLOAD(tb[IFA_LOCAL])); in ipaddr_list_or_flush()
Diplink_macvlan.c77 RTA_PAYLOAD(tb[IFLA_MACVLAN_MODE]) < sizeof(__u32)) in macvlan_print_opt()
Dipaddrlabel.c86 RTA_PAYLOAD(tb[IFAL_ADDRESS]), in print_addrlabel()
95 if (tb[IFAL_LABEL] && RTA_PAYLOAD(tb[IFAL_LABEL]) == sizeof(int32_t)) { in print_addrlabel()
Dipneigh.c223 memcpy(&dst.data, RTA_DATA(tb[NDA_DST]), RTA_PAYLOAD(tb[NDA_DST])); in print_neigh()
254 RTA_PAYLOAD(tb[NDA_DST]), in print_neigh()
263 RTA_PAYLOAD(tb[NDA_LLADDR]), in print_neigh()
/external/iproute2/include/
Dlibnetlink.h68 (parse_rtattr((tb), (max), RTA_DATA(rta), RTA_PAYLOAD(rta)))
71 ({ data = RTA_PAYLOAD(rta) >= len ? RTA_DATA(rta) : NULL; \
/external/kernel-headers/original/linux/
Drtnetlink.h154 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) macro
697 ({ if (!rta || RTA_PAYLOAD(rta) < sizeof(u8)) \
702 ({ if (!rta || RTA_PAYLOAD(rta) < sizeof(u16)) \
707 ({ if (!rta || RTA_PAYLOAD(rta) < sizeof(u32)) \
713 if (!rta || RTA_PAYLOAD(rta) < sizeof(u64)) \

12