summaryrefslogtreecommitdiffstats
path: root/sbin/ping
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2003-01-23 12:54:11 +0000
committermaxim <maxim@FreeBSD.org>2003-01-23 12:54:11 +0000
commit118f887acc1e399857c2093a6b46bf5c0794cc48 (patch)
tree62437f1a38cd86722f7eb254920d446274c73de2 /sbin/ping
parent805247f240838bc463cd12a258ffbee793033e46 (diff)
downloadFreeBSD-src-118f887acc1e399857c2093a6b46bf5c0794cc48.zip
FreeBSD-src-118f887acc1e399857c2093a6b46bf5c0794cc48.tar.gz
Anti-magic: s/255/MAXTTL/
Diffstat (limited to 'sbin/ping')
-rw-r--r--sbin/ping/ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 90c0b8a..2923cd3 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -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;
OpenPOWER on IntegriCloud