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");
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to