Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151519417
D48232.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48232.id.diff
View Options
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -313,30 +313,30 @@
options |= F_DOT;
setbuf(stdout, (char *)NULL);
break;
- case 'G': /* Maximum packet size for ping sweep */
+ case 'G': /* Maximum payload size for ping sweep */
ltmp = strtonum(optarg, 1, INT_MAX, &errstr);
if (errstr != NULL) {
- errx(EX_USAGE, "invalid packet size: `%s'",
+ errx(EX_USAGE, "invalid payload size: `%s'",
optarg);
}
sweepmax = (int)ltmp;
if (uid != 0 && sweepmax > DEFDATALEN) {
errc(EX_NOPERM, EPERM,
- "packet size too large: %d > %u",
+ "payload size too large: %d > %u",
sweepmax, DEFDATALEN);
}
options |= F_SWEEP;
break;
- case 'g': /* Minimum packet size for ping sweep */
+ case 'g': /* Minimum payload size for ping sweep */
ltmp = strtonum(optarg, 0, INT_MAX, &errstr);
if (errstr != NULL) {
- errx(EX_USAGE, "invalid packet size: `%s'",
+ errx(EX_USAGE, "invalid payload size: `%s'",
optarg);
}
sweepmin = (int)ltmp;
if (uid != 0 && sweepmin > DEFDATALEN) {
errc(EX_NOPERM, EPERM,
- "packet size too large: %d > %u",
+ "payload size too large: %d > %u",
sweepmin, DEFDATALEN);
}
options |= F_SWEEP;
@@ -344,16 +344,16 @@
case 'H':
options |= F_HOSTNAME;
break;
- case 'h': /* Packet size increment for ping sweep */
+ case 'h': /* Payload size increment for ping sweep */
ltmp = strtonum(optarg, 1, INT_MAX, &errstr);
if (errstr != NULL) {
- errx(EX_USAGE, "invalid packet size: `%s'",
+ errx(EX_USAGE, "invalid payload size: `%s'",
optarg);
}
sweepincr = (int)ltmp;
if (uid != 0 && sweepincr > DEFDATALEN) {
errc(EX_NOPERM, EPERM,
- "packet size too large: %d > %u",
+ "payload size too large: %d > %u",
sweepincr, DEFDATALEN);
}
options |= F_SWEEP;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 9, 11:51 PM (16 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31179377
Default Alt Text
D48232.id.diff (1 KB)
Attached To
Mode
D48232: ping: adjust error messages and comments for -gGh flags
Attached
Detach File
Event Timeline
Log In to Comment