rename --min_reachable again to --reachable, and update changelog

pull/145/head
David Schweikert 6 years ago
parent 80067fcdd5
commit 69f11b104d

@ -1,6 +1,11 @@
fping 4.2 (UNRELEASED)
======================
## New features
- New option -x / --reachable to check if the number of reachable hosts is >= a certain
number. Useful for example to implement connectivity-checks (#138, thanks @deepak0004)
## Bugfixes and other changes
- Fix build with --disable-ipv6 (#134, thanks @Polynomial-C)

@ -225,9 +225,10 @@ Show targets that are unreachable.
Print B<fping> version information.
=item B<-x>, B<--min_reachable>=I<N>
=item B<-x>, B<--reachable>=I<N>
Given a list of hosts, this mode prints if number of active hosts>=N or not.
Given a list of hosts, this mode checks if number of reachable hosts is >= N
and exits true in that case.
=back

@ -419,7 +419,7 @@ int main(int argc, char** argv)
{ NULL, 'T', OPTPARSE_REQUIRED },
{ "unreach", 'u', OPTPARSE_NONE },
{ "version", 'v', OPTPARSE_NONE },
{ "min_reachable", 'x', OPTPARSE_REQUIRED },
{ "reachable", 'x', OPTPARSE_REQUIRED },
{ 0, 0, 0 }
};
@ -2788,6 +2788,6 @@ void usage(int is_error)
fprintf(out, " -s, --stats print final stats\n");
fprintf(out, " -u, --unreach show targets that are unreachable\n");
fprintf(out, " -v, --version show version\n");
fprintf(out, " -x, --min_reachable=N shows if >=N hosts are reachable or not\n");
fprintf(out, " -x, --reachable=N shows if >=N hosts are reachable or not\n");
exit(is_error);
}
Loading…
Cancel
Save