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