{
fprintf(stderr, "\n%s: generate random CAN frames\n\n", prg);
fprintf(stderr, "Usage: %s [can-interface]\n", prg);
- fprintf(stderr, "Options: -g <ms> (gap in milli seconds) "
+ fprintf(stderr, "Options: -g <ms> (gap in milli seconds) "
"default: %d\n", DEFAULT_GAP);
- fprintf(stderr, " -e (extended frame mode) "
+ fprintf(stderr, " -e (extended frame mode) "
"default: standard frame format \n");
- fprintf(stderr, " -I (fixed CAN ID) "
+ fprintf(stderr, " -I (fixed CAN ID) "
"default: 0x123\n");
- fprintf(stderr, " -D (fixed CAN Data) "
+ fprintf(stderr, " -D (fixed CAN Data) "
"default: 01 23 45 67 89 AB CD EF\n");
- fprintf(stderr, " -L (fixed CAN DLC) "
+ fprintf(stderr, " -L (fixed CAN DLC) "
"default: 8\n");
- fprintf(stderr, " -f <canframe> (other fixed CAN frame) "
+ fprintf(stderr, " -f <canframe> (other fixed CAN frame) "
"default: 123#0123456789ABCDEF\n");
- fprintf(stderr, " -l (local loopback disable) "
- "default: loopback\n");
- fprintf(stderr, " -v (verbose) "
+ fprintf(stderr, " -x (disable loopback) "
+ "default: standard loopback\n");
+ fprintf(stderr, " -v (verbose) "
"default: don't print sent frames\n");
}
signal(SIGHUP, sigterm);
signal(SIGINT, sigterm);
- while ((opt = getopt(argc, argv, "g:eIDLf:lv")) != -1) {
+ while ((opt = getopt(argc, argv, "g:eIDLf:xv")) != -1) {
switch (opt) {
case 'g':
gap = strtoul(optarg, NULL, 10);
verbose = 1;
break;
- case 'l':
+ case 'x':
loopback_disable = 1;
break;