Home | History | Annotate | Download | only in exe

Lines Matching full:opts

553 		miniopt_t opts;
557 miniopt_init(&opts, "pktgen", "", FALSE);
559 while ((opt_err = miniopt(&opts, argv)) != -1) {
565 argv += opts.consumed;
567 if (!opts.good_int && opts.opt != 'd') {
568 fprintf(stderr, "invalid integer %s\n", opts.valstr);
573 switch (opts.opt) {
575 pktgen.freq = opts.uval;
578 pktgen.count = opts.uval;
581 pktgen.print = opts.uval;
584 pktgen.total = opts.uval;
587 pktgen.stop = opts.uval;
590 pktgen.minlen = opts.uval;
593 pktgen.maxlen = opts.uval;
596 pktgen.minlen = pktgen.maxlen = opts.uval;
599 if (!strcmp(opts.valstr, "send"))
601 else if (!strcmp(opts.valstr, "echo"))
603 else if (!strcmp(opts.valstr, "burst"))
605 else if (!strcmp(opts.valstr, "recv"))
609 opts.valstr);
616 opts.key, opts.valstr);
894 miniopt_t opts;
898 miniopt_init(&opts, "membytes", "rh", FALSE);
903 while ((opt_err = miniopt(&opts, argv)) != -1) {
910 if (opts.positional)
913 argv += opts.consumed;
915 if (opts.opt == 'h') {
917 } else if (opts.opt == 'r') {
1518 miniopt_t opts;
1525 miniopt_init(&opts, "download", "", TRUE);
1528 while ((opt_err = miniopt(&opts, argv)) != -1) {
1534 argv += opts.consumed;
1536 if (opts.opt == 'a') {
1537 if (!opts.good_int) {
1538 fprintf(stderr, "invalid address %s\n", opts.valstr);
1542 start = (uint32)opts.uval;
1543 } else if (opts.positional) {
1546 opts.valstr);
1551 vname = opts.valstr;
1553 fname = opts.valstr;
1554 } else if (!opts.opt) {
1555 if (!strcmp(opts.key, "noreset")) {
1557 } else if (!strcmp(opts.key, "norun")) {
1560 fprintf(stderr, "unrecognized option %s\n", opts.valstr);
1565 fprintf(stderr, "unrecognized option %c\n", opts.opt);
1726 miniopt_t opts;
1733 miniopt_init(&opts, "upload", "", TRUE);
1736 while ((opt_err = miniopt(&opts, argv)) != -1) {
1742 argv += opts.consumed;
1744 if (opts.opt == 'a') {
1745 if (!opts.good_int) {
1746 fprintf(stderr, "invalid address %s\n", opts.valstr);
1750 start = (uint32)opts.uval;
1751 } else if (opts.positional) {
1753 fname = opts.valstr;
1754 } else if (opts.good_int) {
1755 size = (uint32)opts.uval;
1761 } else if (!opts.opt) {
1762 fprintf(stderr, "unrecognized option %s\n", opts.valstr);
1766 fprintf(stderr, "unrecognized option %c\n", opts.opt);