Commit Graph

665 Commits (dcda0cc5950350255918055e082647001f63f501)
 

Author SHA1 Message Date
Erik Auerswald dcda0cc595 Test that -x, -X, -k require numeric argument 9 months ago
Erik Auerswald c5428391a6 Test that negative numbers are not accepted 9 months ago
Erik Auerswald 8ae2babae0 Fix a comment describing a test 9 months ago
Erik Auerswald 290d944b56 Defensive coding: guard against a division by zero
In the function print_per_system_stats(), if packets have been
lost, the number of sent packets is checked to be positive before
dividing by it.  If no packets have been lost, this is not checked.
Either the existing check is not needed, or both code paths need
the check.

The function print_per_system_splits() is quite similar to
print_per_system_stats(), and has the equivalent guards against a
division by zero in both code paths, not just one of them.

In the spirit of defensive coding, I think it is better to be safe
and add the missing guard against a division by zero.
9 months ago
Erik Auerswald e4bae43d66 Update exit status description in man page
With the options -x and -X, fping does not require all hosts to
be reachable for an exit status of 0.

This addresses a comment in issue #99 suggesting such a man page
update.
9 months ago
Erik Auerswald 2a609b856d Test examples from man page
The man page gives two examples combining -C and -q, but
these combinations are not yet tested.  Add tests to help
ensure the documented examples continue to work.
10 months ago
Erik Auerswald 3a527fbc86 Add test for option combination -Q SECS -o
The -o option adds outage duration to the periodic reports.
Each report shows the outage since the last report, not since
the beginning.
10 months ago
Erik Auerswald 4753437b17 Add longer test for -Q SECS
The statistics printed every SECS seconds show the results
since the the last report, not since the beginning.  Also,
every report starts with a timestamp.
10 months ago
Erik Auerswald ccc0cdfdd7 Test that -g does not accept IPv6 10 months ago
Erik Auerswald 2fa4f61079 Test edge case behavior of "fping -g"
* wrong number or kind of arguments fails and prints usage;
* an empty range silently pings nothing and fping returns 1;
* a too large range fails with an error message;
* a zero CIDR prefix length fails with an error message.
10 months ago
deepkv c8e9632150 Add --fwmark/-k option for Linux 10 months ago
German Service Network a3f4c573bf Change obsolete macro from AC_CANONICAL_SYSTEM to AC_CANONICAL_TARGET 1 year ago
German Service Network 7351afdd89 Move the OS detection to configure.ac script to set the use of clock_realtime 1 year ago
German Service Network 163fcdb1ed Fix deprected github action ubuntu-18.04 to ubuntu-22.04 1 year ago
German Service Network b8e413f5ba Checking obsolete macro AC_PROG_CC_STDC as of autoconf-2.70 1 year ago
German Service Network 88091f7c94 Checking obsolete macro AC_GNU_SOURCE as of autoconf-2.62 1 year ago
darless 8601d1ba70 Remove dockerfile from root 1 year ago
darless1 e20939ebfe Move to contrib folder 1 year ago
darless1 55ad83898f Dockerfile for fping 1 year ago
German Service Network 59f32cefb2 Repair the faulty test 15 1 year ago
ilyam8 a6c314516c remove host from netdata chart titles 1 year ago
ilyam8 16108c4fa7 remove www 1 year ago
ilyam8 d95370cbb0 update netdata link 1 year ago
Vincent OLLIVIER 86dedacbe7 Updating documentation regarding root requirements since for --file parameter 1 year ago
Khem Raj c0fbccb977 fping: Initialize msghdr struct in a portable way
Initializing the structure assuming glibc layout results in
compile errors on musl, therefore do partial intialization and then
assigning the members individually.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
1 year ago
German Service Network f94adaf29e Test for fping: add option to exit immediately once N hosts have been found 1 year ago
German Service Network d45438c723 fping: add option to exit immeditely once N hosts have been found 1 year ago
German Service Network e597c48d77 Fixing build warning long int on seqmap.c line 84 1 year ago
German Service Network 9d7731e7a0 OpenBSD is not affected by the "broken alpha headers" bug, too. 1 year ago
German Service Network e8660637cc Fallback to SO_TIMESTAMP if SO_TIMESTAMPNS is not available 1 year ago
David Schweikert 8dc0b7f39a correctly call getnameinfo() 2 years ago
David Schweikert 041ba7acb8 reformat 2 years ago
Thomas Klausner 5d3eee1105 NetBSD/alpha is not affected by the "broken alpha headers" bug. 3 years ago
David Schweikert ab1ed993ba fix socket4 vs socket6 typo (#249, thanks @sfan5) 3 years ago
David Schweikert e975a4339b fix unprivileged ping broken in v5.1 (fixes #248) 3 years ago
David Schweikert 87c9b29d86 update changelog and 5.1 release date 3 years ago
David Schweikert ae49f4d933 Update autotools and fix code coverage issues. 3 years ago
Erik Auerswald c67f6deb51 add missing files to autoclean.sh
At least on my system (Ubuntu GNU/Linux 18.04.6 LTS), autoclean.sh
misses three files: compile, doc/Makefile, and src/Makefile.  Add
them.
3 years ago
German Service Network 948b58ee1f Remove dublicate include time.h entry 3 years ago
David Schweikert 3ecfbb7c1e GH action test 3 years ago
David Schweikert 2d574aa1d1
Create codeql-analysis.yml (#241)
Create codeql-analysis.yml
3 years ago
David Schweikert 052b58be65
Merge pull request #240 from auerswal/doc-fixes
Documentation improvements
3 years ago
Erik Auerswald 36b652b358 Improve -Q documentation
The `-Q, --squiet=SECS` option does not replace the summary
statistics of `-q, --quiets`, but adds interval summary
statistics every SECS seconds to the output.
3 years ago
Erik Auerswald 1452bf362e Improve -d and -n documentation
* Adjust `fping.pod` entries for `-d, --rdns` and `-n, --name`:

  * The code performs reverse DNS lookups on the given targets,
    not on source addresses from ICMP Echo Responses or ICMP
    error messages.  Adjust the `-d` description to reflect this.

  * The sentence describing `-n` seems incomplete, so provide a
    completion in similar spirit to `-d`.

* Add `-d, --rdns` to `-h, --help` output since `-d` and `-n` are
  no longer equivalent.
3 years ago
David Schweikert 477e6776ce
Merge pull request #236 from schweikert/travis-fix
Prepare 5.1 release
3 years ago
David Schweikert cbe7a92c14 prepare 5.1 release 3 years ago
David Schweikert bbaa365526 more travis stability fixes 3 years ago
David Schweikert cf03fa5bdb skip timing test on macos 3 years ago
David Schweikert f1d3615706
Merge pull request #217 from gsnw/bug/203
Fixed wrong timestamp under Free- and OpenBSD and macOS
3 years ago
German Service Network 04af04c839 Fixed wrong timestamp under Free- and OpenBSD and macOS 3 years ago