Allow minimum and maximum sweep size be the same.
Submitted by: maxim
This commit is contained in:
parent
d652802e24
commit
5b04e75f25
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user