]> git.gsnw.org Git - fping.git/log
fping.git
4 years agoprepare for version 5.x
David Schweikert [Sat, 11 Jul 2020 14:04:27 +0000 (16:04 +0200)]
prepare for version 5.x

4 years agoupdate changelog
David Schweikert [Sat, 11 Jul 2020 14:00:53 +0000 (16:00 +0200)]
update changelog

4 years agoMerge pull request #136 from tycho/high-resolution-clock-sources
David Schweikert [Sat, 11 Jul 2020 13:59:19 +0000 (15:59 +0200)]
Merge pull request #136 from tycho/high-resolution-clock-sources

Move to 1us resolution for latency measurements

4 years agoprepare release 4.3
David Schweikert [Sat, 11 Jul 2020 13:53:37 +0000 (15:53 +0200)]
prepare release 4.3

4 years agoget rid of deprecated bzero()
David Schweikert [Sat, 11 Jul 2020 13:53:29 +0000 (15:53 +0200)]
get rid of deprecated bzero()

4 years agoUse line buffering for stdout. fixes #179
David Schweikert [Sat, 11 Jul 2020 13:10:39 +0000 (15:10 +0200)]
Use line buffering for stdout. fixes #179

4 years agoadd missing files from tar.gz (ci, contrib, README.md) - fixes #178
David Schweikert [Sun, 28 Jun 2020 20:31:06 +0000 (22:31 +0200)]
add missing files from tar.gz (ci, contrib, README.md) - fixes #178

4 years agoupdate changelog
David Schweikert [Sun, 28 Jun 2020 20:23:09 +0000 (22:23 +0200)]
update changelog

4 years agoMerge pull request #151 from brownowski/duplicate-patch-1
David Schweikert [Sun, 28 Jun 2020 20:14:15 +0000 (22:14 +0200)]
Merge pull request #151 from brownowski/duplicate-patch-1

Only increase num_alive if response is not a duplicate

4 years agoMerge pull request #185 from laddp/develop
David Schweikert [Sat, 27 Jun 2020 05:56:43 +0000 (07:56 +0200)]
Merge pull request #185 from laddp/develop

Add SIGQUIT summary support similar to ping

4 years agoAdd SIGQUIT summary support similar to ping
Patrick Ladd [Fri, 12 Jun 2020 22:51:06 +0000 (18:51 -0400)]
Add SIGQUIT summary support similar to ping

This reverts commit 3b3877f651af816006ab620f7a189c2c1a3fad8a.

4 years agoMerge pull request #172 from vlvkobal/develop
David Schweikert [Sun, 1 Mar 2020 06:39:31 +0000 (07:39 +0100)]
Merge pull request #172 from vlvkobal/develop

Fix xmt stats in Netdata output

4 years agotest-05: don't assume -D timestamp is based on UNIX epoch
Steven Noonan [Thu, 27 Feb 2020 21:51:50 +0000 (13:51 -0800)]
test-05: don't assume -D timestamp is based on UNIX epoch

If CLOCKID != CLOCK_REALTIME, it probably will not have anything to do
with the UNIX epoch, so it could be smaller than 10 digits.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
4 years agomove to 1us resolution for latency measurement
Steven Noonan [Sun, 30 Sep 2018 21:06:09 +0000 (14:06 -0700)]
move to 1us resolution for latency measurement

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
4 years agoallow passing hex or decimal arguments to -z (debug) flag
Steven Noonan [Sun, 30 Sep 2018 21:05:39 +0000 (14:05 -0700)]
allow passing hex or decimal arguments to -z (debug) flag

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
4 years agomain: add missing getopt_long specification for -z debug argument
Steven Noonan [Sun, 1 Apr 2018 06:43:41 +0000 (23:43 -0700)]
main: add missing getopt_long specification for -z debug argument

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
4 years agoMerge pull request #172 from vlvkobal/develop
David Schweikert [Sun, 1 Mar 2020 06:39:31 +0000 (07:39 +0100)]
Merge pull request #172 from vlvkobal/develop

Fix xmt stats in Netdata output

4 years agoMerge pull request #174 from tycho/macos-unbreak-getaddrinfo
David Schweikert [Sat, 29 Feb 2020 07:37:16 +0000 (08:37 +0100)]
Merge pull request #174 from tycho/macos-unbreak-getaddrinfo

macos: use AI_UNUSABLE hint for getaddrinfo()

4 years agoMerge pull request #173 from tycho/linux-unprivileged-ping
David Schweikert [Sat, 29 Feb 2020 07:36:49 +0000 (08:36 +0100)]
Merge pull request #173 from tycho/linux-unprivileged-ping

Linux unprivileged ping support

4 years agotest-11-nopriv: check Linux GID permission for unprivileged ping
Steven Noonan [Thu, 27 Feb 2020 21:04:34 +0000 (13:04 -0800)]
test-11-nopriv: check Linux GID permission for unprivileged ping

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
4 years agolinux: account for missing IP header block when using SOCK_DGRAM
Steven Noonan [Thu, 27 Feb 2020 20:16:21 +0000 (12:16 -0800)]
linux: account for missing IP header block when using SOCK_DGRAM

Linux doesn't include an IP header in the payload when using an
unprivileged SOCK_DGRAM socket.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
4 years agouse kernel-assigned ping ident value
Steven Noonan [Thu, 27 Feb 2020 18:53:25 +0000 (10:53 -0800)]
use kernel-assigned ping ident value

On Linux, when running with an unprivileged process, the kernel does not
respect the assigned "id" field. So in that scenario we need to ask the
kernel what assignment it has given us instead.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
4 years agomacos: use AI_UNUSABLE hint for getaddrinfo()
Steven Noonan [Thu, 27 Feb 2020 19:14:07 +0000 (11:14 -0800)]
macos: use AI_UNUSABLE hint for getaddrinfo()

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
4 years agoFix xmt stats in Netdata output
Vladimir Kobal [Thu, 27 Feb 2020 12:54:03 +0000 (14:54 +0200)]
Fix xmt stats in Netdata output

4 years agoMerge pull request #167 from cranderson/gcc10
David Schweikert [Sun, 23 Feb 2020 06:56:28 +0000 (07:56 +0100)]
Merge pull request #167 from cranderson/gcc10

use extern in header files when declaring global variables

4 years agoMerge pull request #168 from cranderson/formatstrings
David Schweikert [Sun, 23 Feb 2020 06:55:30 +0000 (07:55 +0100)]
Merge pull request #168 from cranderson/formatstrings

increase some buffer sizes to eliminate format warnings

4 years agoMerge pull request #170 from gsnw/develop
David Schweikert [Sun, 23 Feb 2020 06:54:29 +0000 (07:54 +0100)]
Merge pull request #170 from gsnw/develop

Add Azure Pipline jobs

4 years agoAdd Azure Pipline jobs
German Service Network [Sat, 8 Feb 2020 20:03:54 +0000 (21:03 +0100)]
Add Azure Pipline jobs

4 years agoincrease some buffer sizes to eliminate -Wformat-overflow and -Wformat-truncation...
Charles R. Anderson [Sun, 2 Feb 2020 06:17:34 +0000 (01:17 -0500)]
increase some buffer sizes to eliminate -Wformat-overflow and -Wformat-truncation warnings

4 years agoGCC 10 compatibility: use extern in header files when declaring global variables
Charles R. Anderson [Sun, 2 Feb 2020 05:42:37 +0000 (00:42 -0500)]
GCC 10 compatibility: use extern in header files when declaring global variables

5 years agoadd _GNU_SOURCE to fix some warnings
David Schweikert [Wed, 1 Jan 2020 16:13:05 +0000 (17:13 +0100)]
add _GNU_SOURCE to fix some warnings

5 years agofix usage of open_ping_socket_ipv4/6
David Schweikert [Tue, 31 Dec 2019 17:00:29 +0000 (18:00 +0100)]
fix usage of open_ping_socket_ipv4/6

5 years agoget rid of &tz argument in gettimeofday (obsolete)
David Schweikert [Tue, 31 Dec 2019 16:54:04 +0000 (17:54 +0100)]
get rid of &tz argument in gettimeofday (obsolete)

5 years agoMerge pull request #153 from gsnw/develop
David Schweikert [Tue, 31 Dec 2019 16:38:18 +0000 (17:38 +0100)]
Merge pull request #153 from gsnw/develop

Create Azure Pipline Testbuild without test-14-ping-internet-hosts.pl

5 years agoMerge pull request #154 from pbhenson/fix_-4_bug
David Schweikert [Tue, 31 Dec 2019 16:36:49 +0000 (17:36 +0100)]
Merge pull request #154 from pbhenson/fix_-4_bug

Fix -4 option when IPv6 disabled

5 years agoMerge pull request #163 from kbucheli/fail_on_interface_binding_errors
David Schweikert [Fri, 6 Dec 2019 21:51:05 +0000 (22:51 +0100)]
Merge pull request #163 from kbucheli/fail_on_interface_binding_errors

Fail on interface binding errors

5 years agomake fping fail if it cannot bind the interface (-I)
Konrad Bucheli [Thu, 5 Dec 2019 15:51:41 +0000 (16:51 +0100)]
make fping fail if it cannot bind the interface (-I)

5 years agomake fping fail if it cannot bind the interface (-I)
Konrad Bucheli [Thu, 5 Dec 2019 15:42:40 +0000 (16:42 +0100)]
make fping fail if it cannot bind the interface (-I)

5 years agoFix -4 option when IPv6 disabled
Paul B. Henson [Sun, 28 Jul 2019 18:55:26 +0000 (11:55 -0700)]
Fix -4 option when IPv6 disabled

When IPv6 is disabled, hints_ai_family is set to AF_INET at initialization, resulting in the error "can't specify both -4 and -6" if the -4 option is supplied. If there's no IPv6, make the -4 option a no-op.

5 years agoCreate Azure Pipline Testbuild without test-14-ping-internet-hosts.pl
German Service Network [Sat, 27 Jul 2019 20:01:22 +0000 (22:01 +0200)]
Create Azure Pipline Testbuild without test-14-ping-internet-hosts.pl

5 years agoUpdate fping.c
brownowski [Sun, 7 Jul 2019 01:18:29 +0000 (11:18 +1000)]
Update fping.c

Should only increase num_alive if response is not a duplicate.

In cases where multiple pings are sent, num_alive can increase past one for a host if a duplicate ping response is received while h->num_recv ==1.

5 years agofix google dns names
David Schweikert [Tue, 25 Jun 2019 12:18:16 +0000 (14:18 +0200)]
fix google dns names

5 years agoupdate changelog
David Schweikert [Tue, 25 Jun 2019 12:11:03 +0000 (14:11 +0200)]
update changelog

5 years agoMerge branch 'master' into develop
David Schweikert [Tue, 25 Jun 2019 12:09:48 +0000 (14:09 +0200)]
Merge branch 'master' into develop

5 years agoMerge pull request #149 from stromnet/inet6-too-strict-check
David Schweikert [Tue, 25 Jun 2019 12:07:14 +0000 (14:07 +0200)]
Merge pull request #149 from stromnet/inet6-too-strict-check

Do not fail if using fping6 with -6 flag

5 years agoDo not fail if using fping6 with -6 flag
Johan Ström [Tue, 25 Jun 2019 12:03:14 +0000 (14:03 +0200)]
Do not fail if using fping6 with -6 flag

Mostly for backwards compatability

5 years agoupdate changelog
David Schweikert [Mon, 27 May 2019 19:20:55 +0000 (21:20 +0200)]
update changelog

5 years agoMerge pull request #148 from wopfel/docu-stats-correction
David Schweikert [Mon, 27 May 2019 19:19:59 +0000 (21:19 +0200)]
Merge pull request #148 from wopfel/docu-stats-correction

Corrected long option name of -s to --stats

5 years agofix internet test that uses a name with multiple a records
David Schweikert [Mon, 27 May 2019 19:19:40 +0000 (21:19 +0200)]
fix internet test that uses a name with multiple a records

5 years agoCorrected long option name of -s to --stats
Bernd Arnold [Fri, 24 May 2019 13:54:26 +0000 (15:54 +0200)]
Corrected long option name of -s to --stats

The option --src is an alias for the uppercase -S.

Stumbled upon this in the man page.

When running "fping -h", the option is printed correctly:
$ -s, --stats        print final stats

5 years agoMerge pull request #145 from Jesin/fixurl
David Schweikert [Tue, 12 Mar 2019 08:53:01 +0000 (09:53 +0100)]
Merge pull request #145 from Jesin/fixurl

Fix links to CHANGELOG.md and README.md

5 years agoFix links to CHANGELOG.md and README.md
Jesin [Thu, 7 Mar 2019 17:55:00 +0000 (12:55 -0500)]
Fix links to CHANGELOG.md and README.md

5 years agoMerge pull request #144 from xtaran/develop
David Schweikert [Wed, 20 Feb 2019 13:27:28 +0000 (14:27 +0100)]
Merge pull request #144 from xtaran/develop

README.md improvements

5 years agoMerge the two redundant mentions of the man page
Axel Beckert [Tue, 19 Feb 2019 22:51:03 +0000 (23:51 +0100)]
Merge the two redundant mentions of the man page

5 years agoAdd some missing full stops
Axel Beckert [Tue, 19 Feb 2019 22:48:53 +0000 (23:48 +0100)]
Add some missing full stops

Capitalize "github".

5 years agoImprove Markdown formatting
Axel Beckert [Tue, 19 Feb 2019 22:46:24 +0000 (23:46 +0100)]
Improve Markdown formatting

5 years agoUse HTTPS for link to fping homepage
Axel Beckert [Tue, 19 Feb 2019 22:44:21 +0000 (23:44 +0100)]
Use HTTPS for link to fping homepage

5 years agoprepare release v4.2
David Schweikert [Tue, 19 Feb 2019 20:54:45 +0000 (21:54 +0100)]
prepare release v4.2

5 years agoGet rid of warning "timeout (-t) value larger than period (-p) produces unexpected...
David Schweikert [Tue, 19 Feb 2019 20:39:14 +0000 (21:39 +0100)]
Get rid of warning "timeout (-t) value larger than period (-p) produces unexpected results", fixes #142

5 years agotest robustness fixes
David Schweikert [Tue, 19 Feb 2019 19:59:48 +0000 (20:59 +0100)]
test robustness fixes

5 years agoMerge branch 'develop' of github.com:schweikert/fping into develop
David Schweikert [Tue, 19 Feb 2019 19:33:24 +0000 (20:33 +0100)]
Merge branch 'develop' of github.com:schweikert/fping into develop

5 years agoAllow decimal numbers for '-t', '-i', '-p', and '-Q'. fixes #133
David Schweikert [Tue, 19 Feb 2019 19:30:55 +0000 (20:30 +0100)]
Allow decimal numbers for '-t', '-i', '-p', and '-Q'. fixes #133

6 years agorename --min_reachable again to --reachable, and update changelog
David Schweikert [Tue, 30 Oct 2018 19:15:35 +0000 (20:15 +0100)]
rename --min_reachable again to --reachable, and update changelog

6 years agoMerge pull request #138 from deepak0004/develop
David Schweikert [Tue, 30 Oct 2018 19:09:53 +0000 (20:09 +0100)]
Merge pull request #138 from deepak0004/develop

Adding -x option which allows user to specify a threshold and check if atleast those many hosts are active

6 years agoRemoving flag variable and its dependencies, printing required and reachable hosts...
deepak0004 [Sun, 28 Oct 2018 20:55:50 +0000 (02:25 +0530)]
Removing flag variable and its dependencies, printing required and reachable hosts, and changing initialisation of min_reachable

6 years agoCHANGELOG.md: add note about #139
David Schweikert [Sun, 28 Oct 2018 20:33:52 +0000 (21:33 +0100)]
CHANGELOG.md: add note about #139

6 years agoAdding separate exit codes for success or failure, and printing the number of reachab...
deepak0004 [Sat, 27 Oct 2018 17:28:01 +0000 (22:58 +0530)]
Adding separate exit codes for success or failure, and printing the number of reachable hosts

6 years agoMerge pull request #139 from abelbeck/fping6
David Schweikert [Sat, 27 Oct 2018 16:45:12 +0000 (18:45 +0200)]
Merge pull request #139 from abelbeck/fping6

Add backward compatibility for fping6 sym-link

Using sym-links to select IPv6 is discouraged (because it doesn't work the same for IPv4), but I understand that this can help for some use cases (i.e. in particular for the embedded linux distro use case, where having two binaries is an issue). Also, I guess nobody is going to have a binary called fping6 and expect it to do IPv4, so, I guess, no harm done.

6 years agoupdate changelog
David Schweikert [Sun, 21 Oct 2018 17:52:55 +0000 (19:52 +0200)]
update changelog

6 years agoMerge pull request #140 from abelbeck/fix-no-ipv6-hang
David Schweikert [Sun, 21 Oct 2018 17:51:45 +0000 (19:51 +0200)]
Merge pull request #140 from abelbeck/fix-no-ipv6-hang

Fix hang with '-6', with ipv6 kernel module, but not loaded

6 years agoFix hang with '-6', with ipv6 kernel module, but not loaded
Lonnie Abelbeck [Sun, 21 Oct 2018 13:47:44 +0000 (08:47 -0500)]
Fix hang with '-6', with ipv6 kernel module, but not loaded

6 years agoAdd backward compatibility for fping6 sym-link
Lonnie Abelbeck [Sat, 20 Oct 2018 21:27:39 +0000 (16:27 -0500)]
Add backward compatibility for fping6 sym-link

6 years agoChanging the exit code as per travis ci
deepak0004 [Wed, 17 Oct 2018 21:58:38 +0000 (03:28 +0530)]
Changing the exit code as per travis ci

6 years agoAdding travis ci tests for more coverage and rectifying a mistake
deepak0004 [Wed, 17 Oct 2018 21:42:13 +0000 (03:12 +0530)]
Adding travis ci tests for more coverage and rectifying a mistake

6 years agoMaking the reqd changes
deepak0004 [Wed, 17 Oct 2018 18:01:14 +0000 (23:31 +0530)]
Making the reqd changes

6 years agoAdding -x option which allows user to specify a threshold and check if atleast those...
deepak0004 [Wed, 17 Oct 2018 17:52:01 +0000 (23:22 +0530)]
Adding -x option which allows user to specify a threshold and check if atleast those many hosts are active

6 years agofix whitespace
David Schweikert [Tue, 18 Sep 2018 13:54:28 +0000 (15:54 +0200)]
fix whitespace

6 years agoadd note about fixing #134
David Schweikert [Tue, 18 Sep 2018 13:17:30 +0000 (15:17 +0200)]
add note about fixing #134

6 years agoMerge pull request #134 from Polynomial-C/v4.1_diable-ipv6_fix
David Schweikert [Tue, 18 Sep 2018 13:16:06 +0000 (15:16 +0200)]
Merge pull request #134 from Polynomial-C/v4.1_diable-ipv6_fix

Fix build with --disable-ipv6

6 years agoFix build with --disable-ipv6
Lars Wendler [Tue, 18 Sep 2018 13:05:36 +0000 (15:05 +0200)]
Fix build with --disable-ipv6

Otheriwse build breaks with:

fping.c:690:24: error: ‘socket6’ undeclared (first use in this function);
did you mean ‘socket4’?

6 years agoprepare release
David Schweikert [Mon, 17 Sep 2018 19:10:02 +0000 (21:10 +0200)]
prepare release

6 years agoAdd note about #132
David Schweikert [Sat, 1 Sep 2018 19:42:11 +0000 (21:42 +0200)]
Add note about #132

6 years agoMerge pull request #132 from gsnw/develop
David Schweikert [Sat, 1 Sep 2018 19:40:14 +0000 (21:40 +0200)]
Merge pull request #132 from gsnw/develop

Fix FreeBSD ipv6 build

6 years agoFix FreeBSD ipv6 build
German-Service-Network [Fri, 31 Aug 2018 18:32:30 +0000 (20:32 +0200)]
Fix FreeBSD ipv6 build

Source: https://svnweb.freebsd.org/ports/head/net/fping/files/patch-configure.ac?revision=473606&view=markup
Fix build fping with ipv6 support on FreeBSD

6 years agofix --help test, prepare 4.1 release
David Schweikert [Sun, 29 Jul 2018 06:44:47 +0000 (08:44 +0200)]
fix --help test, prepare 4.1 release

6 years agoAllow running fping --help even when raw socket can't be opened, fixes #131
David Schweikert [Sun, 29 Jul 2018 06:27:04 +0000 (08:27 +0200)]
Allow running fping --help even when raw socket can't be opened, fixes #131

6 years agoFix segfault introduced with #118 change, thanks Simon
David Schweikert [Sun, 27 May 2018 19:13:04 +0000 (21:13 +0200)]
Fix segfault introduced with #118 change, thanks Simon

6 years agofix test-14-ping-internet-hosts.pl failing
David Schweikert [Wed, 21 Feb 2018 17:42:29 +0000 (18:42 +0100)]
fix test-14-ping-internet-hosts.pl failing

6 years agoFix running on servers with disabled IPv6, fixes #118
David Schweikert [Wed, 21 Feb 2018 16:28:09 +0000 (17:28 +0100)]
Fix running on servers with disabled IPv6, fixes #118

6 years agoupdate CHANGELOG
David Schweikert [Wed, 21 Feb 2018 16:11:07 +0000 (17:11 +0100)]
update CHANGELOG

6 years agoMerge branch 'master' into develop
David Schweikert [Wed, 21 Feb 2018 16:08:06 +0000 (17:08 +0100)]
Merge branch 'master' into develop

6 years agoMerge pull request #124 from nramon/bugfix-fd0
David Schweikert [Wed, 21 Feb 2018 16:05:12 +0000 (17:05 +0100)]
Merge pull request #124 from nramon/bugfix-fd0

Return -1 when socket_can_read times out.

6 years agoReturn -1 when socket_can_read times out.
Ramon Novoa [Thu, 15 Feb 2018 12:24:27 +0000 (13:24 +0100)]
Return -1 when socket_can_read times out.

0 is a valid file descriptor. Use -1 instead to signal a timeout.

7 years agoMerge pull request #114 from deafgoat/develop
David Schweikert [Tue, 9 May 2017 07:26:48 +0000 (09:26 +0200)]
Merge pull request #114 from deafgoat/develop

fix typo: quet -> quiet

7 years agofix typo: quet -> quiet
Wisdom Omuya [Mon, 8 May 2017 21:24:41 +0000 (17:24 -0400)]
fix typo: quet -> quiet

7 years agoRe-added README file to the distribution
David Schweikert [Wed, 3 May 2017 20:28:12 +0000 (22:28 +0200)]
Re-added README file to the distribution

7 years agolink github issues
David Schweikert [Sun, 23 Apr 2017 16:28:10 +0000 (18:28 +0200)]
link github issues

7 years agoadd new changelog files to dist
David Schweikert [Sun, 23 Apr 2017 15:53:47 +0000 (17:53 +0200)]
add new changelog files to dist

7 years agoadd a note to the changelog
David Schweikert [Sun, 23 Apr 2017 15:44:09 +0000 (17:44 +0200)]
add a note to the changelog

7 years agomerge develop
David Schweikert [Sun, 23 Apr 2017 15:42:53 +0000 (17:42 +0200)]
merge develop