Commit Graph

683 Commits (0d08321346164487464bd2910b323314d5607219)
 

Author SHA1 Message Date
dwes 0d08321346 Prepare v5.2 release. 7 months ago
German Service Network bd44c9f016 Removes the unnecessary file 18 7 months ago
German Service Network f71e40ab60 Extended configure.ac with --enable-debug and create debug output cpu time use 7 months ago
German Service Network 5a2a23d2af Update Azure Pipline add macOS pipline job 7 months ago
German Service Network 47c0c3d8de Update Azure Pipline linux test based on github pipline with matching exclude 7 months ago
David Schweikert ab05279782 Fix number of tests 7 months ago
David Schweikert d6d9c653eb Remove flaky test for now.
Remove the 'fping -X 2 --generate 8.8.0.0/29' test, because it
is currently failing on the MacOS runner. Also, I am not sure that
it is a good idea to ping the IPs 8.8.0.1 and 8.8.0.2 and rely on
them being up.
7 months ago
German Service Network 94e98acaaa Check if the variable next_value->ping_ts != 0 in seqmap_add() 7 months ago
Erik Auerswald c3a2f2c7cc always output error message in crash_and_burn()
This aligns crash_and_burn() with errno_crash_and_burn()
and addresses issue #300.
9 months ago
Erik Auerswald 4151976986 improve help output for options -c and -C 9 months ago
Erik Auerswald 266eb16568 use function stats_reset_interval()
Git commit bb8d71ef27 from 2020 among many
other things introduced the function stats_reset_interval() to reset the
*_i interval (or split) host statistics, but did not use it.  This commit
replaces the open coded reset of interval stats inside print_host_splits()
and print_netdata() with calling stats_reset_interval().
9 months ago
Erik Auerswald c138b08141 typo fixes pertaining to ICMP for IPv6 sockets
As mentioned in issue #300, error messages pertaining to
socket creation may not be printed.  But they should be
corrected anyway, just as the comments.  Having correct
error messages also makes a fix for issue #300 more
obvious, because the messages itself would not change.
9 months ago
Erik Auerswald ae0bc23804 Document that -c N overrides -a or -u 9 months ago
Erik Auerswald 1443614dad Decouple -a/-u effects from -c
As described in issue #295, the option combinations "-c N -u"
and "-c N -a" inadvertently have the same effect as "-c N -q".
Prevent this by first acting on -c, which includes disabling
either -a or -u, if -c is given, before acting on -a/-u.
9 months ago
Erik Auerswald c122186f70 Move description of -i MSEC to probing options
The -i MSEC, --interval=MSEC option does not directly affect
the output format, but rather the probe generation, i.e., the
minimum time between probes.  Thus it is more fitting to list
it under "probing options" than under "output options".
9 months ago
Erik Auerswald d312a278d5 Test ping to "all IPv6 nodes" multicast address
Any Echo Response packet uses a different source address than
used for the target, because it is not allowed to use a multicast
address as source.  This results in extra output in a specific
format on standard error.

This should work, because IPv6 requires multicast support, and
every IPv6 node is supposed to join the "all nodes" multicast
group, including the node the test runs on.  It at least works
on my Ubuntu 20.04 LTS system.
9 months ago
Erik Auerswald ef74f642d1 Test edge cases of -f and -g
* -f with non-existing file
* -f with input file containing comment and empty line
* -g with non-numeric address in "CIDR" format
* -g with one non-numeric address in start resp. end position
* -g with one IPv6 address in start resp. end position
9 months ago
Erik Auerswald 32b9a55a98 Test -l together with -Q or -t 9 months ago
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