Commit Graph

610 Commits (7b3cf2593a770fd50c86d62667263b70db818860)
 

Author SHA1 Message Date
David Schweikert 8152668607 update CHANGELOG 5 years ago
David Schweikert c7437d8f61
Merge pull request #187 from Polynomial-C/disable-ipv6_build_fix
Fix build with --disable-ipv6
5 years ago
Lars Wendler 54e97d9e39
Fix build with --disable-ipv6
Otherwise build breaks with:

fping.c:399:14: error: ‘ident6’ undeclared (first use in this function); did you mean ‘ident4’?
  399 |     ident4 = ident6 = getpid() & 0xFFFF;
      |              ^~~~~~
      |              ident4

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
5 years ago
David Schweikert 08c83453f3 Merge branch 'v4.x' into develop 5 years ago
David Schweikert 3690be9cdd avoid including ci/build in dist tarball 5 years ago
David Schweikert 9731556633 prepare for version 5.x 5 years ago
David Schweikert c1d3f65694 update changelog 5 years ago
David Schweikert 721af135db
Merge pull request #136 from tycho/high-resolution-clock-sources
Move to 1us resolution for latency measurements
5 years ago
David Schweikert c27f37c91c prepare release 4.3 5 years ago
David Schweikert 97f995f38e get rid of deprecated bzero() 5 years ago
David Schweikert efc5ed3263 Use line buffering for stdout. fixes #179 5 years ago
David Schweikert e38f2b221c add missing files from tar.gz (ci, contrib, README.md) - fixes #178 5 years ago
David Schweikert 52af20a3ed update changelog 5 years ago
David Schweikert f5f9415651
Merge pull request #151 from brownowski/duplicate-patch-1
Only increase num_alive if response is not a duplicate
5 years ago
David Schweikert 5eff605bbb
Merge pull request #185 from laddp/develop
Add SIGQUIT summary support similar to ping
5 years ago
Patrick Ladd e064c36df8 Add SIGQUIT summary support similar to ping
This reverts commit 3b3877f651af816006ab620f7a189c2c1a3fad8a.
5 years ago
David Schweikert ee648fccde Merge pull request #172 from vlvkobal/develop
Fix xmt stats in Netdata output
5 years ago
Steven Noonan ad451e7a15
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>
5 years ago
Steven Noonan 754a21e2bd
move to 1us resolution for latency measurement
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
5 years ago
Steven Noonan 8aa4361118
allow passing hex or decimal arguments to -z (debug) flag
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
5 years ago
Steven Noonan e21b68f62e
main: add missing getopt_long specification for -z debug argument
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
5 years ago
David Schweikert 25e30da512
Merge pull request #172 from vlvkobal/develop
Fix xmt stats in Netdata output
5 years ago
David Schweikert 589d326650
Merge pull request #174 from tycho/macos-unbreak-getaddrinfo
macos: use AI_UNUSABLE hint for getaddrinfo()
5 years ago
David Schweikert 43767e2fbc
Merge pull request #173 from tycho/linux-unprivileged-ping
Linux unprivileged ping support
5 years ago
Steven Noonan 44dd04562c
test-11-nopriv: check Linux GID permission for unprivileged ping
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
5 years ago
Steven Noonan 6bc29919d3
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>
5 years ago
Steven Noonan 1486bf209b
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>
5 years ago
Steven Noonan 5187f5b990
macos: use AI_UNUSABLE hint for getaddrinfo()
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
5 years ago
Vladimir Kobal edf8475f63 Fix xmt stats in Netdata output 5 years ago
David Schweikert bc5017b329
Merge pull request #167 from cranderson/gcc10
use extern in header files when declaring global variables
5 years ago
David Schweikert c1967a21fc
Merge pull request #168 from cranderson/formatstrings
increase some buffer sizes to eliminate format warnings
5 years ago
David Schweikert 659d3d837d
Merge pull request #170 from gsnw/develop
Add Azure Pipline jobs
5 years ago
German Service Network 5b5fa55d63 Add Azure Pipline jobs 5 years ago
Charles R. Anderson a75a6f8675 increase some buffer sizes to eliminate -Wformat-overflow and -Wformat-truncation warnings 5 years ago
Charles R. Anderson 0ed73181eb GCC 10 compatibility: use extern in header files when declaring global variables 5 years ago
David Schweikert aba04241c7 add _GNU_SOURCE to fix some warnings 5 years ago
David Schweikert 410e66ddcc fix usage of open_ping_socket_ipv4/6 5 years ago
David Schweikert 18dcc6af70 get rid of &tz argument in gettimeofday (obsolete) 5 years ago
David Schweikert 99c0829df0
Merge pull request #153 from gsnw/develop
Create Azure Pipline Testbuild without test-14-ping-internet-hosts.pl
5 years ago
David Schweikert 88963ebb1b
Merge pull request #154 from pbhenson/fix_-4_bug
Fix -4 option when IPv6 disabled
5 years ago
David Schweikert 39a567d162
Merge pull request #163 from kbucheli/fail_on_interface_binding_errors
Fail on interface binding errors
5 years ago
Konrad Bucheli 745cf4b1cf make fping fail if it cannot bind the interface (-I) 5 years ago
Konrad Bucheli bc9ce2fdf1 make fping fail if it cannot bind the interface (-I) 5 years ago
Paul B. Henson 509f5a59cb
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 ago
German Service Network a77e2e6c18 Create Azure Pipline Testbuild without test-14-ping-internet-hosts.pl 5 years ago
brownowski 5883c6f272
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.
6 years ago
David Schweikert 12961d59ec fix google dns names 6 years ago
David Schweikert 7c61ac54be update changelog 6 years ago
David Schweikert 1d24c3f48a Merge branch 'master' into develop 6 years ago
David Schweikert f8b327923e
Merge pull request #149 from stromnet/inet6-too-strict-check
Do not fail if using fping6 with -6 flag
6 years ago