Home | History | Annotate | Download | only in tc

Lines Matching full:argv

148 #define NEXT_IS_NUMBER() (NEXT_ARG_OK() && isdigit(argv[1][0]))
168 static int netem_parse_opt(struct qdisc_util *qu, int argc, char **argv,
190 for( ; argc > 0; --argc, ++argv) {
191 if (matches(*argv, "limit") == 0) {
193 if (get_size(&opt.limit, *argv)) {
197 } else if (matches(*argv, "latency") == 0 ||
198 matches(*argv, "delay") == 0) {
200 if (get_ticks(&opt.latency, *argv)) {
207 if (get_ticks(&opt.jitter, *argv)) {
215 if (get_percent(&cor.delay_corr, *argv)) {
221 } else if (matches(*argv, "loss") == 0 ||
222 matches(*argv, "drop") == 0) {
230 if (isdigit(argv[0][0]))
233 if (!strcmp(*argv, "random")) {
236 if (get_percent(&opt.loss, *argv)) {
243 if (get_percent(&cor.loss_corr, *argv)) {
248 } else if (!strcmp(*argv, "state")) {
252 if (parse_percent(&p13, *argv)) {
267 if (get_percent(&gimodel.p31, *argv)) {
275 if (get_percent(&gimodel.p32, *argv)) {
283 if (get_percent(&gimodel.p23, *argv)) {
288 } else if (!strcmp(*argv, "gemodel")) {
290 if (get_percent(&gemodel.p, *argv)) {
304 if (get_percent(&gemodel.r, *argv)) {
312 if (get_percent(&gemodel.h, *argv)) {
320 if (get_percent(&gemodel.k1, *argv)) {
326 *argv);
329 } else if (matches(*argv, "reorder") == 0) {
332 if (get_percent(&reorder.probability, *argv)) {
339 if (get_percent(&reorder.correlation, *argv)) {
344 } else if (matches(*argv, "corrupt") == 0) {
347 if (get_percent(&corrupt.probability, *argv)) {
354 if (get_percent(&corrupt.correlation, *argv)) {
359 } else if (matches(*argv, "gap") == 0) {
361 if (get_u32(&opt.gap, *argv, 0)) {
365 } else if (matches(*argv, "duplicate") == 0) {
367 if (get_percent(&opt.duplicate, *argv)) {
373 if (get_percent(&cor.dup_corr, *argv)) {
378 } else if (matches(*argv, "distribution") == 0) {
381 dist_size = get_distribution(*argv, dist_data, MAX_DIST);
386 } else if (matches(*argv, "rate") == 0) {
389 if (get_rate(&rate.rate, *argv)) {
395 if (get_s32(&rate.packet_overhead, *argv, 0)) {
402 if (get_u32(&rate.cell_size, *argv, 0)) {
409 if (get_s32(&rate.cell_overhead, *argv, 0)) {
414 } else if (strcmp(*argv, "help") == 0) {
418 fprintf(stderr, "What is \"%s\"?\n", *argv);