Lines Matching refs:rate
37 fprintf(stderr, "Usage: ... police rate BPS burst BYTES[/BYTES] [ mtu BYTES[/BYTES] ]\n");
192 } else if (strcmp(*argv, "rate") == 0) {
194 if (p.rate.rate) {
195 fprintf(stderr, "Double \"rate\" spec\n");
198 if (get_rate(&p.rate.rate, *argv)) {
199 explain1("rate");
214 if (p.peakrate.rate) {
218 if (get_rate(&p.peakrate.rate, *argv)) {
262 if (p.rate.rate && !buffer) {
263 fprintf(stderr, "\"burst\" requires \"rate\".\n");
266 if (p.peakrate.rate) {
267 if (!p.rate.rate) {
268 fprintf(stderr, "\"peakrate\" requires \"rate\".\n");
277 if (p.rate.rate) {
278 p.rate.mpu = mpu;
279 p.rate.overhead = overhead;
280 if (tc_calc_rtable(&p.rate, rtab, Rcell_log, mtu, linklayer) < 0) {
281 fprintf(stderr, "TBF: failed to calculate rate table.\n");
284 p.burst = tc_calc_xmittime(p.rate.rate, buffer);
287 if (p.peakrate.rate) {
291 fprintf(stderr, "POLICE: failed to calculate peak rate table.\n");
299 if (p.rate.rate)
301 if (p.peakrate.rate)
347 fprintf(f, "rate %s ", sprint_rate(p->rate.rate, b1));
348 buffer = tc_calc_xmitsize(p->rate.rate, p->burst);
353 if (p->peakrate.rate)
354 fprintf(f, "peakrate %s ", sprint_rate(p->peakrate.rate, b1));
362 fprintf(f, "overhead %ub ", p->rate.overhead);