Home
last modified time | relevance | path

Searched refs:xstats (Results 1 – 21 of 21) sorted by relevance

/external/iproute2/tc/
Dq_drr.c100 static int drr_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats) in drr_print_xstats() argument
105 if (xstats == NULL) in drr_print_xstats()
107 if (RTA_PAYLOAD(xstats) < sizeof(*x)) in drr_print_xstats()
109 x = RTA_DATA(xstats); in drr_print_xstats()
Dq_codel.c175 struct rtattr *xstats) in codel_print_xstats() argument
180 if (xstats == NULL) in codel_print_xstats()
183 st = RTA_DATA(xstats); in codel_print_xstats()
184 if (RTA_PAYLOAD(xstats) < sizeof(*st)) { in codel_print_xstats()
186 memcpy(&_st, st, RTA_PAYLOAD(xstats)); in codel_print_xstats()
Dtc_util.c515 void print_tcstats2_attr(FILE *fp, struct rtattr *rta, char *prefix, struct rtattr **xstats) in print_tcstats2_attr() argument
562 if (xstats) in print_tcstats2_attr()
563 *xstats = tbs[TCA_STATS_APP] ? : NULL; in print_tcstats2_attr()
566 void print_tcstats_attr(FILE *fp, struct rtattr *tb[], char *prefix, struct rtattr **xstats) in print_tcstats_attr() argument
571 print_tcstats2_attr(fp, tb[TCA_STATS2], prefix, xstats); in print_tcstats_attr()
572 if (xstats && NULL == *xstats) in print_tcstats_attr()
608 if (tb[TCA_XSTATS] && xstats) in print_tcstats_attr()
609 *xstats = tb[TCA_XSTATS]; in print_tcstats_attr()
Dq_fq_codel.c202 struct rtattr *xstats) in fq_codel_print_xstats() argument
207 if (xstats == NULL) in fq_codel_print_xstats()
210 st = RTA_DATA(xstats); in fq_codel_print_xstats()
211 if (RTA_PAYLOAD(xstats) < sizeof(*st)) { in fq_codel_print_xstats()
213 memcpy(&_st, st, RTA_PAYLOAD(xstats)); in fq_codel_print_xstats()
Dtc_util.h27 int (*print_xstats)(struct qdisc_util *qu, FILE *f, struct rtattr *xstats);
48 int (*print_xstats)(struct action_util *au, FILE *f, struct rtattr *xstats);
84 extern void print_tcstats_attr(FILE *fp, struct rtattr *tb[], char *prefix, struct rtattr **xstats);
85 extern void print_tcstats2_attr(FILE *fp, struct rtattr *rta, char *prefix, struct rtattr **xstats);
Dq_sfb.c173 struct rtattr *xstats) in sfb_print_xstats() argument
177 if (xstats == NULL) in sfb_print_xstats()
180 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in sfb_print_xstats()
183 st = RTA_DATA(xstats); in sfb_print_xstats()
Dq_hhf.c176 struct rtattr *xstats) in hhf_print_xstats() argument
180 if (xstats == NULL) in hhf_print_xstats()
183 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in hhf_print_xstats()
186 st = RTA_DATA(xstats); in hhf_print_xstats()
Dq_choke.c205 struct rtattr *xstats) in choke_print_xstats() argument
209 if (xstats == NULL) in choke_print_xstats()
212 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in choke_print_xstats()
215 st = RTA_DATA(xstats); in choke_print_xstats()
Dq_pie.c191 struct rtattr *xstats) in pie_print_xstats() argument
195 if (xstats == NULL) in pie_print_xstats()
198 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in pie_print_xstats()
201 st = RTA_DATA(xstats); in pie_print_xstats()
Dq_red.c203 static int red_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats) in red_print_xstats() argument
208 if (xstats == NULL) in red_print_xstats()
211 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in red_print_xstats()
214 st = RTA_DATA(xstats); in red_print_xstats()
Dq_sfq.c257 struct rtattr *xstats) in sfq_print_xstats() argument
261 if (xstats == NULL) in sfq_print_xstats()
263 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in sfq_print_xstats()
265 st = RTA_DATA(xstats); in sfq_print_xstats()
Dq_fq.c288 struct rtattr *xstats) in fq_print_xstats() argument
292 if (xstats == NULL) in fq_print_xstats()
295 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in fq_print_xstats()
298 st = RTA_DATA(xstats); in fq_print_xstats()
Dq_hfsc.c124 hfsc_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats) in hfsc_print_xstats() argument
128 if (xstats == NULL) in hfsc_print_xstats()
130 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in hfsc_print_xstats()
132 st = RTA_DATA(xstats); in hfsc_print_xstats()
Dtc_qdisc.c270 struct rtattr *xstats = NULL; in print_qdisc() local
273 print_tcstats_attr(fp, tb, " ", &xstats); in print_qdisc()
277 if (q && xstats && q->print_xstats) { in print_qdisc()
278 q->print_xstats(q, fp, xstats); in print_qdisc()
Dq_htb.c353 static int htb_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats) in htb_print_xstats() argument
356 if (xstats == NULL) in htb_print_xstats()
359 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in htb_print_xstats()
362 st = RTA_DATA(xstats); in htb_print_xstats()
Dtc_class.c378 struct rtattr *xstats = NULL; in print_class() local
381 print_tcstats_attr(fp, tb, " ", &xstats); in print_class()
384 if (q && (xstats || tb[TCA_XSTATS]) && q->print_xstats) { in print_class()
385 q->print_xstats(q, fp, xstats ? : tb[TCA_XSTATS]); in print_class()
Dq_cbq.c561 static int cbq_print_xstats(struct qdisc_util *qu, FILE *f, struct rtattr *xstats) in cbq_print_xstats() argument
565 if (xstats == NULL) in cbq_print_xstats()
568 if (RTA_PAYLOAD(xstats) < sizeof(*st)) in cbq_print_xstats()
571 st = RTA_DATA(xstats); in cbq_print_xstats()
Dm_pedit.h60 extern int pedit_print_xstats(struct action_util *au, FILE *f, struct rtattr *xstats);
Dm_pedit.c582 pedit_print_xstats(struct action_util *au, FILE *f, struct rtattr *xstats) in pedit_print_xstats() argument
/external/iproute2/ip/
Diplink_can.c348 FILE *f, struct rtattr *xstats) in can_print_xstats() argument
352 if (xstats && RTA_PAYLOAD(xstats) == sizeof(*stats)) { in can_print_xstats()
353 stats = RTA_DATA(xstats); in can_print_xstats()
/external/libnl/lib/route/link/
Dvlan.c84 struct nlattr *xstats) in vlan_parse() argument