]> git.gsnw.org Git - fping.git/log
fping.git
11 months agoUpdate exit status description in man page
Erik Auerswald [Wed, 10 Jan 2024 09:47:12 +0000 (10:47 +0100)]
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.

12 months agoTest examples from man page
Erik Auerswald [Mon, 8 Jan 2024 08:35:49 +0000 (09:35 +0100)]
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.

12 months agoAdd test for option combination -Q SECS -o
Erik Auerswald [Mon, 8 Jan 2024 08:16:29 +0000 (09:16 +0100)]
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.

12 months agoAdd longer test for -Q SECS
Erik Auerswald [Mon, 8 Jan 2024 08:15:04 +0000 (09:15 +0100)]
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.

12 months agoTest that -g does not accept IPv6
Erik Auerswald [Mon, 8 Jan 2024 08:12:59 +0000 (09:12 +0100)]
Test that -g does not accept IPv6

12 months agoTest edge case behavior of "fping -g"
Erik Auerswald [Mon, 8 Jan 2024 08:12:09 +0000 (09:12 +0100)]
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.

12 months agoAdd --fwmark/-k option for Linux
deepkv [Fri, 15 Dec 2023 16:25:00 +0000 (17:25 +0100)]
Add --fwmark/-k option for Linux

14 months agoChange obsolete macro from AC_CANONICAL_SYSTEM to AC_CANONICAL_TARGET
German Service Network [Fri, 15 Sep 2023 19:20:14 +0000 (21:20 +0200)]
Change obsolete macro from AC_CANONICAL_SYSTEM to AC_CANONICAL_TARGET

14 months agoMove the OS detection to configure.ac script to set the use of clock_realtime
German Service Network [Sun, 10 Sep 2023 08:33:33 +0000 (10:33 +0200)]
Move the OS detection to configure.ac script to set the use of clock_realtime

14 months agoFix deprected github action ubuntu-18.04 to ubuntu-22.04
German Service Network [Fri, 15 Sep 2023 19:41:42 +0000 (21:41 +0200)]
Fix deprected github action ubuntu-18.04 to ubuntu-22.04

14 months agoChecking obsolete macro AC_PROG_CC_STDC as of autoconf-2.70
German Service Network [Wed, 1 Nov 2023 07:39:57 +0000 (08:39 +0100)]
Checking obsolete macro AC_PROG_CC_STDC as of autoconf-2.70

14 months agoChecking obsolete macro AC_GNU_SOURCE as of autoconf-2.62
German Service Network [Sat, 30 Sep 2023 19:12:59 +0000 (21:12 +0200)]
Checking obsolete macro AC_GNU_SOURCE as of autoconf-2.62

16 months agoRemove dockerfile from root
darless [Thu, 31 Aug 2023 15:28:21 +0000 (10:28 -0500)]
Remove dockerfile from root

16 months agoMove to contrib folder
darless1 [Tue, 6 Dec 2022 19:03:16 +0000 (13:03 -0600)]
Move to contrib folder

16 months agoDockerfile for fping
darless1 [Tue, 6 Dec 2022 18:52:41 +0000 (12:52 -0600)]
Dockerfile for fping

16 months agoRepair the faulty test 15
German Service Network [Sun, 3 Sep 2023 07:30:06 +0000 (09:30 +0200)]
Repair the faulty test 15

16 months agoremove host from netdata chart titles
ilyam8 [Tue, 12 Apr 2022 07:35:14 +0000 (10:35 +0300)]
remove host from netdata chart titles

16 months agoremove www
ilyam8 [Wed, 1 Jun 2022 16:33:24 +0000 (19:33 +0300)]
remove www

16 months agoupdate netdata link
ilyam8 [Wed, 1 Jun 2022 16:29:55 +0000 (19:29 +0300)]
update netdata link

16 months agoUpdating documentation regarding root requirements since for --file parameter
Vincent OLLIVIER [Sun, 27 Nov 2022 04:08:37 +0000 (23:08 -0500)]
Updating documentation regarding root requirements since for --file parameter

16 months agofping: Initialize msghdr struct in a portable way
Khem Raj [Mon, 29 Aug 2022 22:41:51 +0000 (15:41 -0700)]
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>
16 months agoTest for fping: add option to exit immediately once N hosts have been found
German Service Network [Sun, 31 Jul 2022 06:53:57 +0000 (08:53 +0200)]
Test for fping: add option to exit immediately once N hosts have been found

16 months agofping: add option to exit immeditely once N hosts have been found
German Service Network [Sat, 30 Jul 2022 10:39:54 +0000 (12:39 +0200)]
fping: add option to exit immeditely once N hosts have been found

16 months agoFixing build warning long int on seqmap.c line 84
German Service Network [Sun, 24 Jul 2022 08:54:38 +0000 (10:54 +0200)]
Fixing build warning long int on seqmap.c line 84

16 months agoOpenBSD is not affected by the "broken alpha headers" bug, too.
German Service Network [Sun, 28 May 2023 19:03:22 +0000 (21:03 +0200)]
OpenBSD is not affected by the "broken alpha headers" bug, too.

16 months agoFallback to SO_TIMESTAMP if SO_TIMESTAMPNS is not available
German Service Network [Sat, 19 Aug 2023 20:12:26 +0000 (22:12 +0200)]
Fallback to SO_TIMESTAMP if SO_TIMESTAMPNS is not available

2 years agocorrectly call getnameinfo()
David Schweikert [Fri, 21 Oct 2022 13:34:37 +0000 (15:34 +0200)]
correctly call getnameinfo()

2 years agoreformat
David Schweikert [Fri, 21 Oct 2022 13:31:19 +0000 (15:31 +0200)]
reformat

2 years agoNetBSD/alpha is not affected by the "broken alpha headers" bug.
Thomas Klausner [Fri, 13 May 2022 04:49:52 +0000 (06:49 +0200)]
NetBSD/alpha is not affected by the "broken alpha headers" bug.

2 years agofix socket4 vs socket6 typo (#249, thanks @sfan5)
David Schweikert [Sat, 5 Mar 2022 15:58:47 +0000 (16:58 +0100)]
fix socket4 vs socket6 typo (#249, thanks @sfan5)

2 years agofix unprivileged ping broken in v5.1 (fixes #248)
David Schweikert [Sun, 13 Feb 2022 16:45:57 +0000 (17:45 +0100)]
fix unprivileged ping broken in v5.1 (fixes #248)

2 years agoupdate changelog and 5.1 release date
David Schweikert [Sun, 6 Feb 2022 13:20:39 +0000 (14:20 +0100)]
update changelog and 5.1 release date

2 years agoUpdate autotools and fix code coverage issues.
David Schweikert [Sun, 6 Feb 2022 12:55:40 +0000 (13:55 +0100)]
Update autotools and fix code coverage issues.

2 years agoadd missing files to autoclean.sh
Erik Auerswald [Sat, 5 Feb 2022 11:41:00 +0000 (12:41 +0100)]
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.

2 years agoRemove dublicate include time.h entry
German Service Network [Sun, 6 Feb 2022 11:40:47 +0000 (12:40 +0100)]
Remove dublicate include time.h entry

2 years agoGH action test
David Schweikert [Sun, 23 Jan 2022 17:04:19 +0000 (18:04 +0100)]
GH action test

2 years agoCreate codeql-analysis.yml (#241)
David Schweikert [Sun, 30 Jan 2022 20:41:45 +0000 (21:41 +0100)]
Create codeql-analysis.yml (#241)

Create codeql-analysis.yml

2 years agoMerge pull request #240 from auerswal/doc-fixes
David Schweikert [Sun, 30 Jan 2022 17:02:08 +0000 (18:02 +0100)]
Merge pull request #240 from auerswal/doc-fixes

Documentation improvements

2 years agoImprove -Q documentation
Erik Auerswald [Sun, 30 Jan 2022 12:30:05 +0000 (13:30 +0100)]
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.

2 years agoImprove -d and -n documentation
Erik Auerswald [Sun, 30 Jan 2022 12:10:29 +0000 (13:10 +0100)]
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 agoMerge pull request #236 from schweikert/travis-fix
David Schweikert [Fri, 31 Dec 2021 16:44:28 +0000 (17:44 +0100)]
Merge pull request #236 from schweikert/travis-fix

Prepare 5.1 release

3 years agoprepare 5.1 release
David Schweikert [Thu, 30 Dec 2021 11:49:56 +0000 (12:49 +0100)]
prepare 5.1 release

3 years agomore travis stability fixes
David Schweikert [Thu, 30 Dec 2021 13:41:35 +0000 (14:41 +0100)]
more travis stability fixes

3 years agoskip timing test on macos
David Schweikert [Thu, 30 Dec 2021 11:30:23 +0000 (12:30 +0100)]
skip timing test on macos

3 years agoMerge pull request #217 from gsnw/bug/203
David Schweikert [Fri, 31 Dec 2021 16:12:05 +0000 (17:12 +0100)]
Merge pull request #217 from gsnw/bug/203

Fixed wrong timestamp under Free- and OpenBSD and macOS

3 years agoFixed wrong timestamp under Free- and OpenBSD and macOS
German Service Network [Fri, 12 Mar 2021 21:27:59 +0000 (22:27 +0100)]
Fixed wrong timestamp under Free- and OpenBSD and macOS

3 years agoMerge pull request #227 from aafbsd/patch-1
David Schweikert [Thu, 30 Dec 2021 09:29:08 +0000 (10:29 +0100)]
Merge pull request #227 from aafbsd/patch-1

fix getnameinfo

3 years agoMerge pull request #229 from gsnw/bug/219
David Schweikert [Thu, 30 Dec 2021 09:27:42 +0000 (10:27 +0100)]
Merge pull request #229 from gsnw/bug/219

use formatstring macro PRId64 in print_netdata for output int64_t

3 years agoMerge pull request #235 from schweikert/travis-fix
David Schweikert [Thu, 30 Dec 2021 09:26:22 +0000 (10:26 +0100)]
Merge pull request #235 from schweikert/travis-fix

make travis testing more robust

3 years agofix travis build
David Schweikert [Wed, 29 Dec 2021 14:50:29 +0000 (15:50 +0100)]
fix travis build

3 years agoMerge pull request #232 from zdyxry/spec
David Schweikert [Sun, 21 Nov 2021 12:26:27 +0000 (13:26 +0100)]
Merge pull request #232 from zdyxry/spec

Use setcap to specify specific files

3 years agoUse setcap to specify specific files
Yiran Zhou [Sat, 20 Nov 2021 00:23:34 +0000 (08:23 +0800)]
Use setcap to specify specific files

3 years agoMerge pull request #226 from k0ste/help
David Schweikert [Wed, 22 Sep 2021 06:46:37 +0000 (08:46 +0200)]
Merge pull request #226 from k0ste/help

Netdata feature: use host instead name as family label

3 years agouse formatstring macro PRId64 in print_netdata for output int64_t
German Service Network [Sat, 14 Aug 2021 10:44:02 +0000 (12:44 +0200)]
use formatstring macro PRId64 in print_netdata for output int64_t

3 years agoUpdate fping.c
aafbsd [Sat, 7 Aug 2021 09:51:04 +0000 (11:51 +0200)]
Update fping.c

getnameinfo() was not called properly for IPv4 (didn't check v6).
Additionally, one might also want to check the result code, call gai_strerror() and inform the user if s.th. goes wrong

3 years agoMerge pull request #215 from normanr/develop
David Schweikert [Sat, 7 Aug 2021 06:33:55 +0000 (08:33 +0200)]
Merge pull request #215 from normanr/develop

Allow -4 option to be given multiple times when IPv6 is enabled.

3 years agoNetdata feature: use host instead name as family label
Konstantin Shalygin [Fri, 6 Aug 2021 17:29:30 +0000 (20:29 +0300)]
Netdata feature: use host instead name as family label

Fixes https://github.com/netdata/netdata/issues/11336

3 years agoMerge pull request #208 from timgates42/bugfix_typo_permanently
David Schweikert [Sun, 18 Jul 2021 15:45:56 +0000 (17:45 +0200)]
Merge pull request #208 from timgates42/bugfix_typo_permanently

docs: fix simple typo, permanetly -> permanently

3 years agoAllow -4 option to be given multiple times when IPv6 is enabled.
Norman Rasmussen [Mon, 1 Mar 2021 06:28:44 +0000 (22:28 -0800)]
Allow -4 option to be given multiple times when IPv6 is enabled.

4 years agodocs: fix simple typo, permanetly -> permanently
Tim Gates [Wed, 16 Dec 2020 19:12:56 +0000 (06:12 +1100)]
docs: fix simple typo, permanetly -> permanently

There is a small typo in src/fping.c.

Should read `permanently` rather than `permanetly`.

4 years agoMerge pull request #200 from simetnicbr/for-upstream/privileged-SO_BINDTODEVICE
David Schweikert [Sat, 17 Oct 2020 06:37:53 +0000 (08:37 +0200)]
Merge pull request #200 from simetnicbr/for-upstream/privileged-SO_BINDTODEVICE

fping: retain privileges until after privileged setsockopt

4 years agoMerge pull request #198 from dinoex/develop
David Schweikert [Sat, 17 Oct 2020 06:29:00 +0000 (08:29 +0200)]
Merge pull request #198 from dinoex/develop

- fix regression introduced in fping 4.3

4 years agoMerge pull request #197 from gsnw/develop
David Schweikert [Sat, 17 Oct 2020 06:27:44 +0000 (08:27 +0200)]
Merge pull request #197 from gsnw/develop

Update Azure Pipline based on travis-ci tuning

4 years agofping: retain privileges until after privileged setsockopt
Henrique de Moraes Holschuh [Mon, 24 Aug 2020 23:00:53 +0000 (20:00 -0300)]
fping: retain privileges until after privileged setsockopt

On Linux, one needs privileges to setsockopt(SO_BINDTODEVICE), and the
current code would drop setuid root privileges too soon.

Temporarily drop privileges instead, and raise them back to issue the
privileged setsockopt().  Once we know we won't need to do any further
privileged setsockopt(), permanently drop privileges.

For now, assume SO_BINDTODEVICE is the only setsockopt that needs this.

4 years ago- fix regression introduced in fping 4.3
Dirk Meyer [Thu, 20 Aug 2020 06:13:42 +0000 (08:13 +0200)]
- fix regression introduced in fping 4.3
bind to source only when option was set.
this allows to work in jails and lxc with custom IPs.
this allows IPv4 only and IPv6 only hosts

4 years agoUpdate Azure Pipline based on travis-ci tuning
German Service Network [Fri, 7 Aug 2020 18:30:11 +0000 (20:30 +0200)]
Update Azure Pipline based on travis-ci tuning

4 years agosmall fixes to changelog
David Schweikert [Wed, 5 Aug 2020 12:24:16 +0000 (14:24 +0200)]
small fixes to changelog

4 years agotravis-ci: fix deploy stage
David Schweikert [Wed, 5 Aug 2020 11:05:20 +0000 (14:05 +0300)]
travis-ci: fix deploy stage

4 years agotravis-ci: fix deploy stage
David Schweikert [Wed, 5 Aug 2020 10:59:46 +0000 (13:59 +0300)]
travis-ci: fix deploy stage

4 years agoprepare 5.0 release
David Schweikert [Wed, 5 Aug 2020 10:50:32 +0000 (13:50 +0300)]
prepare 5.0 release

4 years agomove coverity scan to a script, so that it doesn't run for every job
David Schweikert [Wed, 5 Aug 2020 06:16:49 +0000 (09:16 +0300)]
move coverity scan to a script, so that it doesn't run for every job

4 years agochange license field in fping.spec to something that seems better matching, fixes...
David Schweikert [Wed, 5 Aug 2020 06:15:23 +0000 (09:15 +0300)]
change license field in fping.spec to something that seems better matching, fixes #192

4 years agomove coverity scan to a script, so that it doesn't run for every job
David Schweikert [Wed, 5 Aug 2020 06:08:53 +0000 (09:08 +0300)]
move coverity scan to a script, so that it doesn't run for every job

4 years agomove coverity scan to a script, so that it doesn't run for every job
David Schweikert [Wed, 5 Aug 2020 06:01:38 +0000 (09:01 +0300)]
move coverity scan to a script, so that it doesn't run for every job

4 years agoupdate coverage badge link
David Schweikert [Wed, 5 Aug 2020 05:22:04 +0000 (08:22 +0300)]
update coverage badge link

4 years agouse int64_t for time-related variables
David Schweikert [Wed, 5 Aug 2020 04:59:42 +0000 (07:59 +0300)]
use int64_t for time-related variables

4 years agoremove debug output
David Schweikert [Tue, 4 Aug 2020 12:30:41 +0000 (15:30 +0300)]
remove debug output

4 years agouse int64_t everywhere, instead of long and 10us values
David Schweikert [Tue, 4 Aug 2020 12:28:29 +0000 (15:28 +0300)]
use int64_t everywhere, instead of long and 10us values

4 years agoMerge branch 'testing-improvements' into develop
David Schweikert [Tue, 4 Aug 2020 05:59:07 +0000 (08:59 +0300)]
Merge branch 'testing-improvements' into develop

4 years agomore travis-ci improvements
David Schweikert [Tue, 4 Aug 2020 04:45:23 +0000 (07:45 +0300)]
more travis-ci improvements

4 years agoMerge pull request #196 from schweikert/travis-improvements
David Schweikert [Mon, 3 Aug 2020 19:54:58 +0000 (22:54 +0300)]
Merge pull request #196 from schweikert/travis-improvements

Travis CI improvements, add macos testing

4 years agotravis-ci improvements
David Schweikert [Mon, 3 Aug 2020 19:31:26 +0000 (22:31 +0300)]
travis-ci improvements

4 years agotravis-ci: use xenial autotools instead of building them
David Schweikert [Mon, 3 Aug 2020 19:24:29 +0000 (22:24 +0300)]
travis-ci: use xenial autotools instead of building them

4 years agotravis-ci improvements, add macos testing
David Schweikert [Mon, 3 Aug 2020 05:48:45 +0000 (07:48 +0200)]
travis-ci improvements, add macos testing

4 years agoadd a not about unprivileged mode
David Schweikert [Sun, 2 Aug 2020 16:16:15 +0000 (18:16 +0200)]
add a not about unprivileged mode

4 years agoalways exclude IP header in returned size
David Schweikert [Sun, 2 Aug 2020 15:48:31 +0000 (17:48 +0200)]
always exclude IP header in returned size

4 years agoprint lost pings in loop and count mode, fixes #175
David Schweikert [Thu, 30 Jul 2020 07:04:04 +0000 (09:04 +0200)]
print lost pings in loop and count mode, fixes #175

4 years agorevert sprint_tm change doing apparent wrong casting
David Schweikert [Wed, 29 Jul 2020 16:15:46 +0000 (18:15 +0200)]
revert sprint_tm change doing apparent wrong casting

4 years agofix compiler warning
David Schweikert [Wed, 29 Jul 2020 16:00:19 +0000 (18:00 +0200)]
fix compiler warning

4 years agosmall formatting fixes to printed time
David Schweikert [Wed, 29 Jul 2020 15:24:56 +0000 (17:24 +0200)]
small formatting fixes to printed time

4 years agouse int64_t whenever time is stored, fixes #195
David Schweikert [Wed, 29 Jul 2020 06:52:34 +0000 (08:52 +0200)]
use int64_t whenever time is stored, fixes #195

4 years agouse int64_t instead of struct timespec everywhere
David Schweikert [Wed, 29 Jul 2020 06:25:29 +0000 (08:25 +0200)]
use int64_t instead of struct timespec everywhere

This should be more efficient and is also easier to read.

4 years agoremove unused host_entry fields
David Schweikert [Tue, 28 Jul 2020 14:21:29 +0000 (16:21 +0200)]
remove unused host_entry fields

4 years agoMerge branch 'develop' of github.com:schweikert/fping into develop
David Schweikert [Tue, 28 Jul 2020 06:24:08 +0000 (08:24 +0200)]
Merge branch 'develop' of github.com:schweikert/fping into develop

4 years agosimplify timespec conversions to ns, prepare mocking of receive_packet
David Schweikert [Tue, 28 Jul 2020 06:23:48 +0000 (08:23 +0200)]
simplify timespec conversions to ns, prepare mocking of receive_packet

4 years agoMerge pull request #194 from Kiskae/portable_signals
David Schweikert [Mon, 27 Jul 2020 15:39:52 +0000 (17:39 +0200)]
Merge pull request #194 from Kiskae/portable_signals

Improve portability of signal handling

4 years agouse sigaction when possible
David van Leusen [Mon, 27 Jul 2020 13:48:20 +0000 (15:48 +0200)]
use sigaction when possible

4 years agoimplement finish handler through flag instead of direct call in signal handler
David van Leusen [Mon, 27 Jul 2020 13:39:53 +0000 (15:39 +0200)]
implement finish handler through flag instead of direct call in signal handler

4 years agoMerge pull request #193 from schweikert/timeout-events
David Schweikert [Sun, 26 Jul 2020 09:43:45 +0000 (11:43 +0200)]
Merge pull request #193 from schweikert/timeout-events

refactored event loop, now for each ping create both next-ping+timeout events

4 years agorefactored event loop, now for each ping we create both a ping and a timeout event
David Schweikert [Sun, 26 Jul 2020 05:55:55 +0000 (07:55 +0200)]
refactored event loop, now for each ping we create both a ping and a timeout event