/external/iproute2/tc/ |
D | q_tbf.c | 221 struct tc_tbf_qopt *qopt; in tbf_print_opt() local 235 qopt = RTA_DATA(tb[TCA_TBF_PARMS]); in tbf_print_opt() 236 if (RTA_PAYLOAD(tb[TCA_TBF_PARMS]) < sizeof(*qopt)) in tbf_print_opt() 238 fprintf(f, "rate %s ", sprint_rate(qopt->rate.rate, b1)); in tbf_print_opt() 239 buffer = tc_calc_xmitsize(qopt->rate.rate, qopt->buffer); in tbf_print_opt() 242 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2)); in tbf_print_opt() 247 fprintf(f, "[%08x] ", qopt->buffer); in tbf_print_opt() 248 if (qopt->peakrate.rate) { in tbf_print_opt() 249 fprintf(f, "peakrate %s ", sprint_rate(qopt->peakrate.rate, b1)); in tbf_print_opt() 250 if (qopt->mtu || qopt->peakrate.mpu) { in tbf_print_opt() [all …]
|
D | q_gred.c | 258 struct tc_gred_qopt *qopt; in gred_print_opt() local 274 qopt = RTA_DATA(tb[TCA_GRED_PARMS]); in gred_print_opt() 275 if (RTA_PAYLOAD(tb[TCA_GRED_PARMS]) < sizeof(*qopt)*MAX_DPs) { in gred_print_opt() 282 for (i=0;i<MAX_DPs;i++, qopt++) { in gred_print_opt() 283 if (qopt->DP >= MAX_DPs) continue; in gred_print_opt() 286 qopt->DP, in gred_print_opt() 287 qopt->prio, in gred_print_opt() 288 sprint_size(qopt->qave, b4), in gred_print_opt() 289 sprint_size(qopt->backlog, b5)); in gred_print_opt() 291 qopt->forced+qopt->early, in gred_print_opt() [all …]
|
D | q_sfq.c | 82 struct tc_sfq_qopt *qopt; in sfq_print_opt() local 88 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in sfq_print_opt() 90 qopt = RTA_DATA(opt); in sfq_print_opt() 91 fprintf(f, "limit %up ", qopt->limit); in sfq_print_opt() 92 fprintf(f, "quantum %s ", sprint_size(qopt->quantum, b1)); in sfq_print_opt() 94 fprintf(f, "flows %u/%u ", qopt->flows, qopt->divisor); in sfq_print_opt() 96 if (qopt->perturb_period) in sfq_print_opt() 97 fprintf(f, "perturb %dsec ", qopt->perturb_period); in sfq_print_opt()
|
D | q_netem.c | 309 struct tc_netem_qopt qopt; in netem_print_opt() local 310 int len = RTA_PAYLOAD(opt) - sizeof(qopt); in netem_print_opt() 320 memcpy(&qopt, RTA_DATA(opt), sizeof(qopt)); in netem_print_opt() 324 parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt), in netem_print_opt() 344 fprintf(f, "limit %d", qopt.limit); in netem_print_opt() 346 if (qopt.latency) { in netem_print_opt() 347 fprintf(f, " delay %s", sprint_ticks(qopt.latency, b1)); in netem_print_opt() 349 if (qopt.jitter) { in netem_print_opt() 350 fprintf(f, " %s", sprint_ticks(qopt.jitter, b1)); in netem_print_opt() 356 if (qopt.loss) { in netem_print_opt() [all …]
|
D | q_red.c | 149 struct tc_red_qopt *qopt; in red_print_opt() local 161 qopt = RTA_DATA(tb[TCA_RED_PARMS]); in red_print_opt() 162 if (RTA_PAYLOAD(tb[TCA_RED_PARMS]) < sizeof(*qopt)) in red_print_opt() 165 sprint_size(qopt->limit, b1), in red_print_opt() 166 sprint_size(qopt->qth_min, b2), in red_print_opt() 167 sprint_size(qopt->qth_max, b3)); in red_print_opt() 169 if (qopt->flags & TC_RED_ECN) in red_print_opt() 174 qopt->Wlog, qopt->Plog, qopt->Scell_log); in red_print_opt()
|
D | q_multiq.c | 67 struct tc_multiq_qopt *qopt; in multiq_print_opt() local 71 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in multiq_print_opt() 74 qopt = RTA_DATA(opt); in multiq_print_opt() 76 fprintf(f, "bands %u/%u ", qopt->bands, qopt->max_bands); in multiq_print_opt()
|
D | q_hfsc.c | 72 struct tc_hfsc_qopt qopt; in hfsc_parse_opt() local 74 memset(&qopt, 0, sizeof(qopt)); in hfsc_parse_opt() 79 if (qopt.defcls != 0) { in hfsc_parse_opt() 83 if (get_u16(&qopt.defcls, *argv, 16) < 0) { in hfsc_parse_opt() 98 addattr_l(n, 1024, TCA_OPTIONS, &qopt, sizeof(qopt)); in hfsc_parse_opt() 105 struct tc_hfsc_qopt *qopt; in hfsc_print_opt() local 109 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in hfsc_print_opt() 111 qopt = RTA_DATA(opt); in hfsc_print_opt() 113 if (qopt->defcls != 0) in hfsc_print_opt() 114 fprintf(f, "default %x ", qopt->defcls); in hfsc_print_opt()
|
D | q_fifo.c | 63 struct tc_fifo_qopt *qopt; in fifo_print_opt() local 68 if (RTA_PAYLOAD(opt) < sizeof(*qopt)) in fifo_print_opt() 70 qopt = RTA_DATA(opt); in fifo_print_opt() 73 fprintf(f, "limit %s", sprint_size(qopt->limit, b1)); in fifo_print_opt() 75 fprintf(f, "limit %up", qopt->limit); in fifo_print_opt()
|
D | q_prio.c | 99 struct tc_prio_qopt *qopt; in prio_print_opt() local 105 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, in prio_print_opt() 106 sizeof(*qopt))) in prio_print_opt() 109 fprintf(f, "bands %u priomap ", qopt->bands); in prio_print_opt() 111 fprintf(f, " %d", qopt->priomap[i]); in prio_print_opt()
|
D | q_rr.c | 94 struct tc_prio_qopt *qopt; in rr_print_opt() local 100 if (parse_rtattr_nested_compat(tb, TCA_PRIO_MAX, opt, qopt, in rr_print_opt() 101 sizeof(*qopt))) in rr_print_opt() 104 fprintf(f, "bands %u priomap ", qopt->bands); in rr_print_opt() 106 fprintf(f, " %d", qopt->priomap[i]); in rr_print_opt()
|
/external/iproute2/ |
D | ChangeLog | 109 * Handle pfifo_fast that has no qopt without segfaulting
|