Lines Matching full:rate

37 	fprintf(stderr, "Usage: ... police rate BPS burst BYTES[/BYTES] [ mtu BYTES[/BYTES] ]\n");  in usage()
191 } else if (strcmp(*argv, "rate") == 0) { in act_parse_police()
193 if (p.rate.rate) { in act_parse_police()
194 fprintf(stderr, "Double \"rate\" spec\n"); in act_parse_police()
197 if (get_rate(&p.rate.rate, *argv)) { in act_parse_police()
198 explain1("rate"); in act_parse_police()
213 if (p.peakrate.rate) { in act_parse_police()
217 if (get_rate(&p.peakrate.rate, *argv)) { in act_parse_police()
260 if (p.rate.rate && !buffer) { in act_parse_police()
261 fprintf(stderr, "\"burst\" requires \"rate\".\n"); in act_parse_police()
264 if (p.peakrate.rate) { in act_parse_police()
265 if (!p.rate.rate) { in act_parse_police()
266 fprintf(stderr, "\"peakrate\" requires \"rate\".\n"); in act_parse_police()
275 if (p.rate.rate) { in act_parse_police()
276 p.rate.mpu = mpu; in act_parse_police()
277 p.rate.overhead = overhead; in act_parse_police()
278 if (tc_calc_rtable(&p.rate, rtab, Rcell_log, mtu, linklayer) < 0) { in act_parse_police()
279 fprintf(stderr, "TBF: failed to calculate rate table.\n"); in act_parse_police()
282 p.burst = tc_calc_xmittime(p.rate.rate, buffer); in act_parse_police()
285 if (p.peakrate.rate) { in act_parse_police()
289 fprintf(stderr, "POLICE: failed to calculate peak rate table.\n"); in act_parse_police()
297 if (p.rate.rate) in act_parse_police()
299 if (p.peakrate.rate) in act_parse_police()
347 fprintf(f, "rate %s ", sprint_rate(p->rate.rate, b1)); in print_police()
348 buffer = tc_calc_xmitsize(p->rate.rate, p->burst); in print_police()
353 if (p->peakrate.rate) in print_police()
354 fprintf(f, "peakrate %s ", sprint_rate(p->peakrate.rate, b1)); in print_police()
362 fprintf(f, "overhead %ub ", p->rate.overhead); in print_police()
363 linklayer = (p->rate.linklayer & TC_LINKLAYER_MASK); in print_police()