Searched refs:RTA_PAYLOAD (Results 1 - 25 of 43) sorted by relevance

12

/external/iproute2/tc/
H A Dq_dsmark.c138 parse_rtattr(tb, TCA_DSMARK_MAX, RTA_DATA(opt), RTA_PAYLOAD(opt));
140 if (!RTA_PAYLOAD(tb[TCA_DSMARK_MASK]))
146 if (!RTA_PAYLOAD(tb[TCA_DSMARK_VALUE]))
152 if (RTA_PAYLOAD(tb[TCA_DSMARK_INDICES]) < sizeof(__u16))
158 if (RTA_PAYLOAD(tb[TCA_DSMARK_DEFAULT_INDEX]) < sizeof(__u16))
H A Df_tcindex.c135 if (RTA_PAYLOAD(tb[TCA_TCINDEX_HASH]) < sizeof(hash))
143 if (RTA_PAYLOAD(tb[TCA_TCINDEX_MASK]) < sizeof(mask))
151 if (RTA_PAYLOAD(tb[TCA_TCINDEX_SHIFT]) < sizeof(shift))
159 if (RTA_PAYLOAD(tb[TCA_TCINDEX_FALL_THROUGH]) <
H A Dq_multiq.c71 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
H A Dq_sfq.c88 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
108 if (RTA_PAYLOAD(xstats) < sizeof(*st))
H A Dq_atm.c201 if (RTA_PAYLOAD(tb[TCA_ATM_ADDR]) <
215 for (i = 0; i < RTA_PAYLOAD(tb[TCA_ATM_HDR]); i++)
224 if (RTA_PAYLOAD(tb[TCA_ATM_EXCESS]) < sizeof(excess))
241 if (RTA_PAYLOAD(tb[TCA_ATM_STATE]) < sizeof(state))
H A Dq_fifo.c68 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
H A Dtc.c57 if (opt && RTA_PAYLOAD(opt))
59 (unsigned) RTA_PAYLOAD(opt));
74 if (opt && RTA_PAYLOAD(opt))
76 fhandle, (unsigned) RTA_PAYLOAD(opt));
H A Dq_hfsc.c109 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
126 if (RTA_PAYLOAD(xstats) < sizeof(*st))
245 if (RTA_PAYLOAD(tb[TCA_HFSC_RSC]) < sizeof(*rsc))
251 if (RTA_PAYLOAD(tb[TCA_HFSC_FSC]) < sizeof(*fsc))
257 if (RTA_PAYLOAD(tb[TCA_HFSC_USC]) < sizeof(*usc))
H A Dq_red.c162 if (RTA_PAYLOAD(tb[TCA_RED_PARMS]) < sizeof(*qopt))
187 if (RTA_PAYLOAD(xstats) < sizeof(*st))
H A Dtc_stab.c129 MIN(RTA_PAYLOAD(tb[TCA_STAB_BASE]), sizeof(s)));
149 dlen = RTA_PAYLOAD(tb[TCA_STAB_DATA]) / sizeof(__u16);
H A Dq_drr.c108 if (RTA_PAYLOAD(xstats) < sizeof(*x))
H A Dq_netem.c310 int len = RTA_PAYLOAD(opt) - sizeof(qopt);
328 if (RTA_PAYLOAD(tb[TCA_NETEM_CORR]) < sizeof(*cor))
333 if (RTA_PAYLOAD(tb[TCA_NETEM_REORDER]) < sizeof(*reorder))
338 if (RTA_PAYLOAD(tb[TCA_NETEM_CORRUPT]) < sizeof(*corrupt))
H A Dtc_util.c503 memcpy(&bs, RTA_DATA(tbs[TCA_STATS_BASIC]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_BASIC]), sizeof(bs)));
510 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q)));
517 memcpy(&re, RTA_DATA(tbs[TCA_STATS_RATE_EST]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_RATE_EST]), sizeof(re)));
524 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q)));
551 memcpy(&st, RTA_DATA(tb[TCA_STATS]), MIN(RTA_PAYLOAD(tb[TCA_STATS]), sizeof(st)));
H A Dq_cbq.c453 if (RTA_PAYLOAD(tb[TCA_CBQ_RATE]) < sizeof(*r))
459 if (RTA_PAYLOAD(tb[TCA_CBQ_LSSOPT]) < sizeof(*lss))
465 if (RTA_PAYLOAD(tb[TCA_CBQ_WRROPT]) < sizeof(*wrr))
471 if (RTA_PAYLOAD(tb[TCA_CBQ_FOPT]) < sizeof(*fopt))
477 if (RTA_PAYLOAD(tb[TCA_CBQ_OVL_STRATEGY]) < sizeof(*ovl))
479 (unsigned) RTA_PAYLOAD(tb[TCA_CBQ_OVL_STRATEGY]),
563 if (RTA_PAYLOAD(xstats) < sizeof(*st))
H A Dq_htb.c259 if (RTA_PAYLOAD(tb[TCA_HTB_PARMS]) < sizeof(*hopt)) return -1;
292 if (RTA_PAYLOAD(tb[TCA_HTB_INIT]) < sizeof(*gopt)) return -1;
308 if (RTA_PAYLOAD(xstats) < sizeof(*st))
H A Dem_meta.c446 if (RTA_PAYLOAD(rta) < sizeof(__u32)) {
455 print_binary(fd, RTA_DATA(rta), RTA_PAYLOAD(rta));
484 if (RTA_PAYLOAD(rta) < sizeof(__u32))
515 if (RTA_PAYLOAD(tb[TCA_EM_META_HDR]) < sizeof(*meta_hdr)) {
/external/iproute2/ip/
H A Diplink_vlan.c152 rem = RTA_PAYLOAD(attr);
183 RTA_PAYLOAD(tb[IFLA_VLAN_ID]) < sizeof(__u16))
189 if (RTA_PAYLOAD(tb[IFLA_VLAN_FLAGS]) < sizeof(*flags))
H A Diplink_macvlan.c77 RTA_PAYLOAD(tb[IFLA_MACVLAN_MODE]) < sizeof(__u32))
H A Diprule.c89 RTA_PAYLOAD(tb[FRA_SRC]),
96 RTA_PAYLOAD(tb[FRA_SRC]),
110 RTA_PAYLOAD(tb[FRA_DST]),
117 RTA_PAYLOAD(tb[FRA_DST]),
175 RTA_PAYLOAD(tb[RTA_GATEWAY]),
H A Dipaddrlabel.c86 RTA_PAYLOAD(tb[IFAL_ADDRESS]),
95 if (tb[IFAL_LABEL] && RTA_PAYLOAD(tb[IFAL_LABEL]) == sizeof(int32_t)) {
H A Dipaddress.c294 RTA_PAYLOAD(tb[IFLA_ADDRESS]),
304 RTA_PAYLOAD(tb[IFLA_BROADCAST]),
419 int rem = RTA_PAYLOAD(vflist);
499 memcpy(&dst.data, RTA_DATA(rta_tb[IFA_LOCAL]), RTA_PAYLOAD(rta_tb[IFA_LOCAL]));
543 RTA_PAYLOAD(rta_tb[IFA_LOCAL]),
553 RTA_PAYLOAD(rta_tb[IFA_ADDRESS]),
563 RTA_PAYLOAD(rta_tb[IFA_BROADCAST]),
570 RTA_PAYLOAD(rta_tb[IFA_ANYCAST]),
920 memcpy(&dst.data, RTA_DATA(tb[IFA_LOCAL]), RTA_PAYLOAD(tb[IFA_LOCAL]));
H A Dipxfrm.c680 XFRMA_ALG_AUTH, RTA_PAYLOAD(rta), fp, prefix);
686 RTA_PAYLOAD(rta), fp, prefix);
692 XFRMA_ALG_CRYPT, RTA_PAYLOAD(rta), fp, prefix);
698 XFRMA_ALG_COMP, RTA_PAYLOAD(rta), fp, prefix);
709 if (RTA_PAYLOAD(tb[XFRMA_ENCAP]) < sizeof(*e)) {
741 RTA_PAYLOAD(rta), family, fp, prefix);
754 if (RTA_PAYLOAD(tb[XFRMA_COADDR]) < sizeof(*coa)) {
774 if (RTA_PAYLOAD(tb[XFRMA_LASTUSED]) < sizeof(lastused)) {
906 if (RTA_PAYLOAD(tb[XFRMA_POLICY_TYPE]) < sizeof(*upt))
H A Dipneigh.c223 memcpy(&dst.data, RTA_DATA(tb[NDA_DST]), RTA_PAYLOAD(tb[NDA_DST]));
254 RTA_PAYLOAD(tb[NDA_DST]),
263 RTA_PAYLOAD(tb[NDA_LLADDR]),
/external/iproute2/include/
H A 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/
H A 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)) \

Completed in 97 milliseconds

12