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

12

/external/iproute2/tc/
H A Dq_dsmark.c141 parse_rtattr(tb, TCA_DSMARK_MAX, RTA_DATA(opt), RTA_PAYLOAD(opt));
143 if (!RTA_PAYLOAD(tb[TCA_DSMARK_MASK]))
149 if (!RTA_PAYLOAD(tb[TCA_DSMARK_VALUE]))
155 if (RTA_PAYLOAD(tb[TCA_DSMARK_INDICES]) < sizeof(__u16))
161 if (RTA_PAYLOAD(tb[TCA_DSMARK_DEFAULT_INDEX]) < sizeof(__u16))
H A Df_tcindex.c139 if (RTA_PAYLOAD(tb[TCA_TCINDEX_HASH]) < sizeof(hash))
147 if (RTA_PAYLOAD(tb[TCA_TCINDEX_MASK]) < sizeof(mask))
155 if (RTA_PAYLOAD(tb[TCA_TCINDEX_SHIFT]) < sizeof(shift))
163 if (RTA_PAYLOAD(tb[TCA_TCINDEX_FALL_THROUGH]) <
H A Dq_multiq.c73 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
H A Dq_sfq.c90 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
110 if (RTA_PAYLOAD(xstats) < sizeof(*st))
H A Dq_atm.c203 if (RTA_PAYLOAD(tb[TCA_ATM_ADDR]) <
217 for (i = 0; i < RTA_PAYLOAD(tb[TCA_ATM_HDR]); i++)
226 if (RTA_PAYLOAD(tb[TCA_ATM_EXCESS]) < sizeof(excess))
243 if (RTA_PAYLOAD(tb[TCA_ATM_STATE]) < sizeof(state))
H A Dq_fifo.c70 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.c176 if (RTA_PAYLOAD(tb[TCA_RED_PARMS]) < sizeof(*qopt))
201 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.c109 if (RTA_PAYLOAD(xstats) < sizeof(*x))
H A Dq_netem.c312 int len = RTA_PAYLOAD(opt) - sizeof(qopt);
330 if (RTA_PAYLOAD(tb[TCA_NETEM_CORR]) < sizeof(*cor))
335 if (RTA_PAYLOAD(tb[TCA_NETEM_REORDER]) < sizeof(*reorder))
340 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.c454 if (RTA_PAYLOAD(tb[TCA_CBQ_RATE]) < sizeof(*r))
460 if (RTA_PAYLOAD(tb[TCA_CBQ_LSSOPT]) < sizeof(*lss))
466 if (RTA_PAYLOAD(tb[TCA_CBQ_WRROPT]) < sizeof(*wrr))
472 if (RTA_PAYLOAD(tb[TCA_CBQ_FOPT]) < sizeof(*fopt))
478 if (RTA_PAYLOAD(tb[TCA_CBQ_OVL_STRATEGY]) < sizeof(*ovl))
480 (unsigned) RTA_PAYLOAD(tb[TCA_CBQ_OVL_STRATEGY]),
564 if (RTA_PAYLOAD(xstats) < sizeof(*st))
H A Dq_htb.c261 if (RTA_PAYLOAD(tb[TCA_HTB_PARMS]) < sizeof(*hopt)) return -1;
294 if (RTA_PAYLOAD(tb[TCA_HTB_INIT]) < sizeof(*gopt)) return -1;
310 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.c142 rem = RTA_PAYLOAD(attr);
172 RTA_PAYLOAD(tb[IFLA_VLAN_ID]) < sizeof(__u16))
178 if (RTA_PAYLOAD(tb[IFLA_VLAN_FLAGS]) < sizeof(*flags))
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]),
169 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 Dipxfrm.c638 XFRMA_ALG_AUTH, RTA_PAYLOAD(rta), fp, prefix);
644 RTA_PAYLOAD(rta), fp, prefix);
650 XFRMA_ALG_CRYPT, RTA_PAYLOAD(rta), fp, prefix);
656 XFRMA_ALG_COMP, RTA_PAYLOAD(rta), fp, prefix);
667 if (RTA_PAYLOAD(tb[XFRMA_ENCAP]) < sizeof(*e)) {
699 RTA_PAYLOAD(rta), family, fp, prefix);
712 if (RTA_PAYLOAD(tb[XFRMA_COADDR]) < sizeof(*coa)) {
732 if (RTA_PAYLOAD(tb[XFRMA_LASTUSED]) < sizeof(lastused)) {
861 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]),
H A Diproute.c309 RTA_PAYLOAD(tb[RTA_DST]),
316 RTA_PAYLOAD(tb[RTA_DST]),
329 RTA_PAYLOAD(tb[RTA_SRC]),
336 RTA_PAYLOAD(tb[RTA_SRC]),
352 RTA_PAYLOAD(tb[RTA_GATEWAY]),
373 RTA_PAYLOAD(tb[RTA_PREFSRC]),
486 RTA_PAYLOAD(tb[RTA_METRICS]));
540 len = RTA_PAYLOAD(tb[RTA_MULTIPATH]);
559 RTA_PAYLOAD(tb[RTA_GATEWAY]),
666 addattr_l(n, 1024, RTA_MULTIPATH, RTA_DATA(rta), RTA_PAYLOAD(rt
[all...]
/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.h148 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) macro
706 ({ if (!rta || RTA_PAYLOAD(rta) < sizeof(u8)) \
711 ({ if (!rta || RTA_PAYLOAD(rta) < sizeof(u16)) \
716 ({ if (!rta || RTA_PAYLOAD(rta) < sizeof(u32)) \
722 if (!rta || RTA_PAYLOAD(rta) < sizeof(u64)) \
/external/iproute2/lib/
H A Dll_map.c79 im->alen = alen = RTA_PAYLOAD(tb[IFLA_ADDRESS]);

Completed in 241 milliseconds

12