mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
Anti-magic: s/255/MAXTTL/
This commit is contained in:
parent
0b2f8b3f68
commit
9bc1a9ec6c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109732
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user