version 1.99, 2014/01/10 04:54:35 |
version 1.100, 2014/02/13 20:51:21 |
|
|
break; |
break; |
case 'c': |
case 'c': |
repeatcount = strtonum(optarg, 1, INT_MAX, &errstr); |
repeatcount = strtonum(optarg, 1, INT_MAX, &errstr); |
|
if (errstr) |
|
errx(1, "count is %s", errstr); |
break; |
break; |
case 'd': |
case 'd': |
dflag = 1; |
dflag = 1; |
|
|
interface = optarg; |
interface = optarg; |
break; |
break; |
case 'w': |
case 'w': |
interval = atoi(optarg); |
interval = strtonum(optarg, 1, INT_MAX, &errstr); |
|
if (errstr) |
|
errx(1, "interval is %s", errstr); |
iflag = 1; |
iflag = 1; |
break; |
break; |
case '?': |
case '?': |
|
|
#ifdef BACKWARD_COMPATIBILITY |
#ifdef BACKWARD_COMPATIBILITY |
if (*argv) { |
if (*argv) { |
if (isdigit((unsigned char)**argv)) { |
if (isdigit((unsigned char)**argv)) { |
interval = atoi(*argv); |
interval = strtonum(*argv, 1, INT_MAX, &errstr); |
if (interval <= 0) |
if (errstr) |
usage(); |
errx(1, "interval is %s", errstr); |
++argv; |
++argv; |
iflag = 1; |
iflag = 1; |
} |
} |