Anti-magic: s/255/MAXTTL/

This commit is contained in:
Maxim Konovalov 2003-01-23 12:54:11 +00:00
parent 0b2f8b3f68
commit 9bc1a9ec6c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109732

View File

@ -324,7 +324,7 @@ main(argc, argv)
break;
case 'm': /* TTL */
ultmp = strtoul(optarg, &ep, 0);
if (*ep || ep == optarg || ultmp > 255)
if (*ep || ep == optarg || ultmp > MAXTTL)
errx(EX_USAGE, "invalid TTL: `%s'", optarg);
ttl = ultmp;
options |= F_TTL;
@ -381,7 +381,7 @@ main(argc, argv)
break;
case 'T': /* multicast TTL */
ultmp = strtoul(optarg, &ep, 0);
if (*ep || ep == optarg || ultmp > 255)
if (*ep || ep == optarg || ultmp > MAXTTL)
errx(EX_USAGE, "invalid multicast TTL: `%s'",
optarg);
mttl = ultmp;