Changeset View
Changeset View
Standalone View
Standalone View
sbin/ping/ping6.c
Show First 20 Lines • Show All 574 Lines • ▼ Show 20 Lines | case 'y': | ||||
break; | break; | ||||
case 'Y': | case 'Y': | ||||
options &= ~F_NOUSERDATA; | options &= ~F_NOUSERDATA; | ||||
options |= F_FQDNOLD; | options |= F_FQDNOLD; | ||||
break; | break; | ||||
case 'W': | case 'W': | ||||
t = strtod(optarg, &e); | t = strtod(optarg, &e); | ||||
if (*e || e == optarg || t > (double)INT_MAX) | if (*e || e == optarg || t > (double)INT_MAX) | ||||
err(EX_USAGE, "invalid timing interval: `%s'", | errx(EX_USAGE, "invalid timing interval: `%s'", | ||||
optarg); | optarg); | ||||
options |= F_WAITTIME; | options |= F_WAITTIME; | ||||
waittime = (int)t; | waittime = (int)t; | ||||
break; | break; | ||||
case 't': | case 't': | ||||
alarmtimeout = strtoul(optarg, &e, 0); | alarmtimeout = strtoul(optarg, &e, 0); | ||||
if ((alarmtimeout < 1) || (alarmtimeout == ULONG_MAX)) | if ((alarmtimeout < 1) || (alarmtimeout == ULONG_MAX)) | ||||
errx(EX_USAGE, "invalid timeout: `%s'", | errx(EX_USAGE, "invalid timeout: `%s'", | ||||
▲ Show 20 Lines • Show All 2,292 Lines • Show Last 20 Lines |