Lines Matching full:rate
28 …fprintf(stderr, "Usage: ... tbf limit BYTES burst BYTES[/BYTES] rate KBPS [ mtu BYTES[/BYTES] ]\n"… in explain()
123 } else if (strcmp(*argv, "rate") == 0) { in tbf_parse_opt()
126 fprintf(stderr, "tbf: duplicate \"rate\" specification\n"); in tbf_parse_opt()
130 explain1("rate", *argv); in tbf_parse_opt()
177 fprintf(stderr, "tbf: the \"rate\" parameter is mandatory.\n"); in tbf_parse_opt()
201 opt.rate.rate = (rate64 >= (1ULL << 32)) ? ~0U : rate64; in tbf_parse_opt()
202 opt.peakrate.rate = (prate64 >= (1ULL << 32)) ? ~0U : prate64; in tbf_parse_opt()
214 opt.rate.mpu = mpu; in tbf_parse_opt()
215 opt.rate.overhead = overhead; in tbf_parse_opt()
216 if (tc_calc_rtable(&opt.rate, rtab, Rcell_log, mtu, linklayer) < 0) { in tbf_parse_opt()
217 fprintf(stderr, "tbf: failed to calculate rate table.\n"); in tbf_parse_opt()
220 opt.buffer = tc_calc_xmittime(opt.rate.rate, buffer); in tbf_parse_opt()
222 if (opt.peakrate.rate) { in tbf_parse_opt()
226 fprintf(stderr, "tbf: failed to calculate peak rate table.\n"); in tbf_parse_opt()
229 opt.mtu = tc_calc_xmittime(opt.peakrate.rate, mtu); in tbf_parse_opt()
239 if (opt.peakrate.rate) { in tbf_parse_opt()
272 rate64 = qopt->rate.rate; in tbf_print_opt()
276 fprintf(f, "rate %s ", sprint_rate(rate64, b1)); in tbf_print_opt()
280 1<<qopt->rate.cell_log, sprint_size(qopt->rate.mpu, b2)); in tbf_print_opt()
286 prate64 = qopt->peakrate.rate; in tbf_print_opt()
316 if (qopt->rate.overhead) { in tbf_print_opt()
317 fprintf(f, "overhead %d", qopt->rate.overhead); in tbf_print_opt()
319 linklayer = (qopt->rate.linklayer & TC_LINKLAYER_MASK); in tbf_print_opt()