/external/iproute2/tc/ |
H A D | q_dsmark.c | 141 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 D | f_tcindex.c | 139 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 D | q_multiq.c | 73 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
|
H A D | q_sfq.c | 90 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) 110 if (RTA_PAYLOAD(xstats) < sizeof(*st))
|
H A D | q_atm.c | 203 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 D | q_fifo.c | 70 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
|
H A D | tc.c | 57 if (opt && RTA_PAYLOAD(opt)) 59 (unsigned) RTA_PAYLOAD(opt)); 74 if (opt && RTA_PAYLOAD(opt)) 76 fhandle, (unsigned) RTA_PAYLOAD(opt));
|
H A D | q_hfsc.c | 109 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 D | q_red.c | 176 if (RTA_PAYLOAD(tb[TCA_RED_PARMS]) < sizeof(*qopt)) 201 if (RTA_PAYLOAD(xstats) < sizeof(*st))
|
H A D | tc_stab.c | 129 MIN(RTA_PAYLOAD(tb[TCA_STAB_BASE]), sizeof(s))); 149 dlen = RTA_PAYLOAD(tb[TCA_STAB_DATA]) / sizeof(__u16);
|
H A D | q_drr.c | 109 if (RTA_PAYLOAD(xstats) < sizeof(*x))
|
H A D | q_netem.c | 312 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 D | tc_util.c | 503 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 D | q_cbq.c | 454 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 D | q_htb.c | 261 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 D | em_meta.c | 446 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 D | iplink_vlan.c | 142 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 D | iprule.c | 89 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 D | ipaddrlabel.c | 86 RTA_PAYLOAD(tb[IFAL_ADDRESS]), 95 if (tb[IFAL_LABEL] && RTA_PAYLOAD(tb[IFAL_LABEL]) == sizeof(int32_t)) {
|
H A D | ipxfrm.c | 638 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 D | ipneigh.c | 223 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 D | iproute.c | 309 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 D | libnetlink.h | 68 (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 D | rtnetlink.h | 148 #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 D | ll_map.c | 79 im->alen = alen = RTA_PAYLOAD(tb[IFLA_ADDRESS]);
|