Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Mar 2016 21:06:17 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r296683 - head/sbin/ping
Message-ID:  <201603112106.u2BL6Hrk062007@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603112106.u2BL6Hrk062007>