Home
last modified time | relevance | path

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

1234

/external/iproute2/tc/
Dq_fq.c229 RTA_PAYLOAD(tb[TCA_FQ_PLIMIT]) >= sizeof(__u32)) { in fq_print_opt()
234 RTA_PAYLOAD(tb[TCA_FQ_FLOW_PLIMIT]) >= sizeof(__u32)) { in fq_print_opt()
239 RTA_PAYLOAD(tb[TCA_FQ_BUCKETS_LOG]) >= sizeof(__u32)) { in fq_print_opt()
244 RTA_PAYLOAD(tb[TCA_FQ_ORPHAN_MASK]) >= sizeof(__u32)) { in fq_print_opt()
249 RTA_PAYLOAD(tb[TCA_FQ_RATE_ENABLE]) >= sizeof(int)) { in fq_print_opt()
255 RTA_PAYLOAD(tb[TCA_FQ_QUANTUM]) >= sizeof(__u32)) { in fq_print_opt()
260 RTA_PAYLOAD(tb[TCA_FQ_INITIAL_QUANTUM]) >= sizeof(__u32)) { in fq_print_opt()
265 RTA_PAYLOAD(tb[TCA_FQ_FLOW_MAX_RATE]) >= sizeof(__u32)) { in fq_print_opt()
272 RTA_PAYLOAD(tb[TCA_FQ_FLOW_DEFAULT_RATE]) >= sizeof(__u32)) { in fq_print_opt()
279 RTA_PAYLOAD(tb[TCA_FQ_FLOW_REFILL_DELAY]) >= sizeof(__u32)) { in fq_print_opt()
[all …]
Dq_hhf.c138 RTA_PAYLOAD(tb[TCA_HHF_BACKLOG_LIMIT]) >= sizeof(__u32)) { in hhf_print_opt()
143 RTA_PAYLOAD(tb[TCA_HHF_QUANTUM]) >= sizeof(__u32)) { in hhf_print_opt()
148 RTA_PAYLOAD(tb[TCA_HHF_HH_FLOWS_LIMIT]) >= sizeof(__u32)) { in hhf_print_opt()
153 RTA_PAYLOAD(tb[TCA_HHF_RESET_TIMEOUT]) >= sizeof(__u32)) { in hhf_print_opt()
158 RTA_PAYLOAD(tb[TCA_HHF_ADMIT_BYTES]) >= sizeof(__u32)) { in hhf_print_opt()
163 RTA_PAYLOAD(tb[TCA_HHF_EVICT_TIMEOUT]) >= sizeof(__u32)) { in hhf_print_opt()
168 RTA_PAYLOAD(tb[TCA_HHF_NON_HH_WEIGHT]) >= sizeof(__u32)) { in hhf_print_opt()
183 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in hhf_print_xstats()
Dq_fq_codel.c162 RTA_PAYLOAD(tb[TCA_FQ_CODEL_LIMIT]) >= sizeof(__u32)) { in fq_codel_print_opt()
167 RTA_PAYLOAD(tb[TCA_FQ_CODEL_FLOWS]) >= sizeof(__u32)) { in fq_codel_print_opt()
172 RTA_PAYLOAD(tb[TCA_FQ_CODEL_QUANTUM]) >= sizeof(__u32)) { in fq_codel_print_opt()
177 RTA_PAYLOAD(tb[TCA_FQ_CODEL_TARGET]) >= sizeof(__u32)) { in fq_codel_print_opt()
182 RTA_PAYLOAD(tb[TCA_FQ_CODEL_CE_THRESHOLD]) >= sizeof(__u32)) { in fq_codel_print_opt()
187 RTA_PAYLOAD(tb[TCA_FQ_CODEL_INTERVAL]) >= sizeof(__u32)) { in fq_codel_print_opt()
192 RTA_PAYLOAD(tb[TCA_FQ_CODEL_ECN]) >= sizeof(__u32)) { in fq_codel_print_opt()
211 if (RTA_PAYLOAD(xstats) < sizeof(*st)) { in fq_codel_print_xstats()
213 memcpy(&_st, st, RTA_PAYLOAD(xstats)); in fq_codel_print_xstats()
Dq_pie.c149 RTA_PAYLOAD(tb[TCA_PIE_LIMIT]) >= sizeof(__u32)) { in pie_print_opt()
154 RTA_PAYLOAD(tb[TCA_PIE_TARGET]) >= sizeof(__u32)) { in pie_print_opt()
159 RTA_PAYLOAD(tb[TCA_PIE_TUPDATE]) >= sizeof(__u32)) { in pie_print_opt()
164 RTA_PAYLOAD(tb[TCA_PIE_ALPHA]) >= sizeof(__u32)) { in pie_print_opt()
169 RTA_PAYLOAD(tb[TCA_PIE_BETA]) >= sizeof(__u32)) { in pie_print_opt()
174 if (tb[TCA_PIE_ECN] && RTA_PAYLOAD(tb[TCA_PIE_ECN]) >= sizeof(__u32)) { in pie_print_opt()
181 RTA_PAYLOAD(tb[TCA_PIE_BYTEMODE]) >= sizeof(__u32)) { in pie_print_opt()
198 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in pie_print_xstats()
Dq_codel.c145 RTA_PAYLOAD(tb[TCA_CODEL_LIMIT]) >= sizeof(__u32)) { in codel_print_opt()
150 RTA_PAYLOAD(tb[TCA_CODEL_TARGET]) >= sizeof(__u32)) { in codel_print_opt()
155 RTA_PAYLOAD(tb[TCA_CODEL_CE_THRESHOLD]) >= sizeof(__u32)) { in codel_print_opt()
160 RTA_PAYLOAD(tb[TCA_CODEL_INTERVAL]) >= sizeof(__u32)) { in codel_print_opt()
165 RTA_PAYLOAD(tb[TCA_CODEL_ECN]) >= sizeof(__u32)) { in codel_print_opt()
184 if (RTA_PAYLOAD(xstats) < sizeof(*st)) { in codel_print_xstats()
186 memcpy(&_st, st, RTA_PAYLOAD(xstats)); in codel_print_xstats()
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.c143 if (RTA_PAYLOAD(tb[TCA_TCINDEX_HASH]) < sizeof(hash)) in tcindex_print_opt()
151 if (RTA_PAYLOAD(tb[TCA_TCINDEX_MASK]) < sizeof(mask)) in tcindex_print_opt()
159 if (RTA_PAYLOAD(tb[TCA_TCINDEX_SHIFT]) < sizeof(shift)) in tcindex_print_opt()
167 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()
216 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_htb.c286 if (RTA_PAYLOAD(tb[TCA_HTB_PARMS]) < sizeof(*hopt)) return -1; in htb_print_opt()
296 RTA_PAYLOAD(tb[TCA_HTB_RATE64]) >= sizeof(rate64)) { in htb_print_opt()
302 RTA_PAYLOAD(tb[TCA_HTB_CEIL64]) >= sizeof(ceil64)) in htb_print_opt()
337 if (RTA_PAYLOAD(tb[TCA_HTB_INIT]) < sizeof(*gopt)) return -1; in htb_print_opt()
345 RTA_PAYLOAD(tb[TCA_HTB_DIRECT_QLEN]) >= sizeof(__u32)) { in htb_print_opt()
359 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in htb_print_xstats()
Dq_hfsc.c113 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in hfsc_print_opt()
130 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in hfsc_print_xstats()
249 if (RTA_PAYLOAD(tb[TCA_HFSC_RSC]) < sizeof(*rsc)) in hfsc_print_class_opt()
255 if (RTA_PAYLOAD(tb[TCA_HFSC_FSC]) < sizeof(*fsc)) in hfsc_print_class_opt()
261 if (RTA_PAYLOAD(tb[TCA_HFSC_USC]) < sizeof(*usc)) in hfsc_print_class_opt()
Dq_netem.c546 int len = RTA_PAYLOAD(opt) - sizeof(qopt); in netem_print_opt()
565 if (RTA_PAYLOAD(tb[TCA_NETEM_CORR]) < sizeof(*cor)) in netem_print_opt()
570 if (RTA_PAYLOAD(tb[TCA_NETEM_REORDER]) < sizeof(*reorder)) in netem_print_opt()
575 if (RTA_PAYLOAD(tb[TCA_NETEM_CORRUPT]) < sizeof(*corrupt)) in netem_print_opt()
589 if (RTA_PAYLOAD(tb[TCA_NETEM_RATE]) < sizeof(*rate)) in netem_print_opt()
594 if (RTA_PAYLOAD(tb[TCA_NETEM_ECN]) < sizeof(*ecn)) in netem_print_opt()
599 if (RTA_PAYLOAD(tb[TCA_NETEM_RATE64]) < sizeof(rate64)) in netem_print_opt()
Dq_cbq.c455 if (RTA_PAYLOAD(tb[TCA_CBQ_RATE]) < sizeof(*r)) in cbq_print_opt()
461 if (RTA_PAYLOAD(tb[TCA_CBQ_LSSOPT]) < sizeof(*lss)) in cbq_print_opt()
467 if (RTA_PAYLOAD(tb[TCA_CBQ_WRROPT]) < sizeof(*wrr)) in cbq_print_opt()
473 if (RTA_PAYLOAD(tb[TCA_CBQ_FOPT]) < sizeof(*fopt)) in cbq_print_opt()
479 if (RTA_PAYLOAD(tb[TCA_CBQ_OVL_STRATEGY]) < sizeof(*ovl)) in cbq_print_opt()
481 (unsigned) RTA_PAYLOAD(tb[TCA_CBQ_OVL_STRATEGY]), in cbq_print_opt()
568 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in cbq_print_xstats()
Df_flower.c339 if (!addr_attr || RTA_PAYLOAD(addr_attr) != ETH_ALEN) in flower_print_eth_addr()
343 if (!mask_attr || RTA_PAYLOAD(mask_attr) != ETH_ALEN) in flower_print_eth_addr()
417 if (!addr_attr || RTA_PAYLOAD(addr_attr) != len) in flower_print_ip_addr()
420 RTA_PAYLOAD(addr_attr), in flower_print_ip_addr()
423 if (!mask_attr || RTA_PAYLOAD(mask_attr) != len) in flower_print_ip_addr()
428 RTA_PAYLOAD(mask_attr), in flower_print_ip_addr()
Dtc.c65 if (opt && RTA_PAYLOAD(opt)) in print_noqopt()
67 (unsigned) RTA_PAYLOAD(opt)); in print_noqopt()
82 if (opt && RTA_PAYLOAD(opt)) in print_nofopt()
84 fhandle, (unsigned) RTA_PAYLOAD(opt)); in print_nofopt()
Dtc_util.c524 memcpy(&bs, RTA_DATA(tbs[TCA_STATS_BASIC]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_BASIC]), sizeof(bs))); in print_tcstats2_attr()
531 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q))); in print_tcstats2_attr()
540 MIN(RTA_PAYLOAD(tbs[TCA_STATS_RATE_EST64]), in print_tcstats2_attr()
548 MIN(RTA_PAYLOAD(tbs[TCA_STATS_RATE_EST]), sizeof(re))); in print_tcstats2_attr()
555 memcpy(&q, RTA_DATA(tbs[TCA_STATS_QUEUE]), MIN(RTA_PAYLOAD(tbs[TCA_STATS_QUEUE]), sizeof(q))); in print_tcstats2_attr()
582 memcpy(&st, RTA_DATA(tb[TCA_STATS]), MIN(RTA_PAYLOAD(tb[TCA_STATS]), sizeof(st))); in print_tcstats_attr()
Dq_choke.c181 if (RTA_PAYLOAD(tb[TCA_CHOKE_PARMS]) < sizeof(*qopt)) in choke_print_opt()
184 RTA_PAYLOAD(tb[TCA_CHOKE_MAX_P]) >= sizeof(__u32)) in choke_print_opt()
212 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in choke_print_xstats()
Dq_gred.c291 RTA_PAYLOAD(tb[TCA_GRED_MAX_P]) >= sizeof(__u32) * MAX_DPs) in gred_print_opt()
295 RTA_PAYLOAD(tb[TCA_GRED_LIMIT]) == sizeof(__u32)) in gred_print_opt()
300 if (RTA_PAYLOAD(tb[TCA_GRED_DPS]) < sizeof(*sopt) || in gred_print_opt()
301 RTA_PAYLOAD(tb[TCA_GRED_PARMS]) < sizeof(*qopt)*MAX_DPs) { in gred_print_opt()
Dq_red.c175 if (RTA_PAYLOAD(tb[TCA_RED_PARMS]) < sizeof(*qopt)) in red_print_opt()
179 RTA_PAYLOAD(tb[TCA_RED_MAX_P]) >= sizeof(__u32)) in red_print_opt()
211 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in red_print_xstats()
/external/iproute2/ip/
Diplink_hsr.c91 RTA_PAYLOAD(tb[IFLA_HSR_SLAVE1]) < sizeof(__u32)) in hsr_print_opt()
94 RTA_PAYLOAD(tb[IFLA_HSR_SLAVE2]) < sizeof(__u32)) in hsr_print_opt()
97 RTA_PAYLOAD(tb[IFLA_HSR_SEQ_NR]) < sizeof(__u16)) in hsr_print_opt()
100 RTA_PAYLOAD(tb[IFLA_HSR_SUPERVISION_ADDR]) < ETH_ALEN) in hsr_print_opt()
124 RTA_PAYLOAD(tb[IFLA_HSR_SUPERVISION_ADDR]), in hsr_print_opt()
Diplink_ipoib.c91 RTA_PAYLOAD(tb[IFLA_IPOIB_PKEY]) < sizeof(__u16)) in ipoib_print_opt()
97 RTA_PAYLOAD(tb[IFLA_IPOIB_MODE]) < sizeof(__u16)) in ipoib_print_opt()
107 RTA_PAYLOAD(tb[IFLA_IPOIB_UMCAST]) < sizeof(__u16)) in ipoib_print_opt()
Dipmroute.c105 memcpy(&dst.data, RTA_DATA(tb[RTA_DST]), RTA_PAYLOAD(tb[RTA_DST])); in print_mroute()
115 memcpy(&src.data, RTA_DATA(tb[RTA_SRC]), RTA_PAYLOAD(tb[RTA_SRC])); in print_mroute()
128 RTA_PAYLOAD(tb[RTA_SRC]), in print_mroute()
136 RTA_PAYLOAD(tb[RTA_DST]), in print_mroute()
152 len = RTA_PAYLOAD(tb[RTA_MULTIPATH]); in print_mroute()
Diplink_vlan.c173 rem = RTA_PAYLOAD(attr); in vlan_print_map()
207 RTA_PAYLOAD(tb[IFLA_VLAN_PROTOCOL]) < sizeof(__u16)) in vlan_print_opt()
210 RTA_PAYLOAD(tb[IFLA_VLAN_ID]) < sizeof(__u16)) in vlan_print_opt()
223 if (RTA_PAYLOAD(tb[IFLA_VLAN_FLAGS]) < sizeof(*flags)) in vlan_print_opt()
Diproute_lwtunnel.c67 RTA_PAYLOAD(tb[MPLS_IPTUNNEL_DST]), in print_encap_mpls()
85 RTA_PAYLOAD(tb[LWTUNNEL_IP_SRC]), in print_encap_ip()
92 RTA_PAYLOAD(tb[LWTUNNEL_IP_DST]), in print_encap_ip()
131 RTA_PAYLOAD(tb[LWTUNNEL_IP6_SRC]), in print_encap_ip6()
138 RTA_PAYLOAD(tb[LWTUNNEL_IP6_DST]), in print_encap_ip6()
Dipxfrm.c702 XFRMA_ALG_AUTH, RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print()
708 RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print()
714 RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print()
720 XFRMA_ALG_CRYPT, RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print()
726 XFRMA_ALG_COMP, RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print()
737 if (RTA_PAYLOAD(tb[XFRMA_ENCAP]) < sizeof(*e)) { in xfrm_xfrma_print()
769 RTA_PAYLOAD(rta), fp, prefix); in xfrm_xfrma_print()
782 if (RTA_PAYLOAD(tb[XFRMA_COADDR]) < sizeof(*coa)) { in xfrm_xfrma_print()
802 if (RTA_PAYLOAD(tb[XFRMA_LASTUSED]) < sizeof(lastused)) { in xfrm_xfrma_print()
821 if (RTA_PAYLOAD(tb[XFRMA_REPLAY_VAL]) < sizeof(*replay)) { in xfrm_xfrma_print()
[all …]
/external/avahi/avahi-core/
Diface-linux.c121 hw->name = avahi_strndup(RTA_DATA(a), RTA_PAYLOAD(a)); in netlink_callback()
127 assert(RTA_PAYLOAD(a) == sizeof(unsigned int)); in netlink_callback()
134 hw->mac_address_size = RTA_PAYLOAD(a); in netlink_callback()
209 if ((rlocal.proto == AVAHI_PROTO_INET6 && RTA_PAYLOAD(a) != 16) || in netlink_callback()
210 (rlocal.proto == AVAHI_PROTO_INET && RTA_PAYLOAD(a) != 4)) in netlink_callback()
213 memcpy(rlocal.data.data, RTA_DATA(a), RTA_PAYLOAD(a)); in netlink_callback()
226 if ((raddr.proto == AVAHI_PROTO_INET6 && RTA_PAYLOAD(a) != 16) || in netlink_callback()
227 (raddr.proto == AVAHI_PROTO_INET && RTA_PAYLOAD(a) != 4)) in netlink_callback()
230 memcpy(raddr.data.data, RTA_DATA(a), RTA_PAYLOAD(a)); in netlink_callback()

1234