svn commit: r296683 - head/sbin/ping
Gleb Smirnoff
glebius at FreeBSD.org
Fri Mar 11 21:06:19 UTC 2016
Author: glebius
Date: Fri Mar 11 21:06:17 2016
New Revision: 296683
URL: https://svnweb.freebsd.org/changeset/base/296683
Log:
Allow minimum and maximum sweep size be the same.
Submitted by: maxim
Modified:
head/sbin/ping/ping.c
Modified: head/sbin/ping/ping.c
==============================================================================
--- head/sbin/ping/ping.c Fri Mar 11 21:05:16 2016 (r296682)
+++ head/sbin/ping/ping.c Fri Mar 11 21:06:17 2016 (r296683)
@@ -793,8 +793,8 @@ main(int argc, char *const *argv)
}
#endif
if (sweepmax) {
- if (sweepmin >= sweepmax)
- errx(EX_USAGE, "Maximum packet size must be greater than the minimum packet size");
+ if (sweepmin > sweepmax)
+ errx(EX_USAGE, "Maximum packet size must be no less than the minimum packet size");
if (datalen != DEFDATALEN)
errx(EX_USAGE, "Packet size and ping sweep are mutually exclusive");
More information about the svn-src-head
mailing list