Commit Graph

648 Commits (e20939ebfe132b296334072c4edd2a9710f8f486)
 

Author SHA1 Message Date
Henrique de Moraes Holschuh 59d83ed402 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
Dirk Meyer 31f76f6071 - 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 ago
German Service Network f2b2cdf620 Update Azure Pipline based on travis-ci tuning 4 years ago
David Schweikert 296de3d7a2 small fixes to changelog 4 years ago
David Schweikert 03bfc48ff4 travis-ci: fix deploy stage 4 years ago
David Schweikert 5f5220939d travis-ci: fix deploy stage 4 years ago
David Schweikert f6e3d7194d prepare 5.0 release 4 years ago
David Schweikert 57d49f2d8e move coverity scan to a script, so that it doesn't run for every job 4 years ago
David Schweikert 2ca8edeaf6 change license field in fping.spec to something that seems better matching, fixes #192 4 years ago
David Schweikert 0d8f3cef2a move coverity scan to a script, so that it doesn't run for every job 4 years ago
David Schweikert aeea60a0e0 move coverity scan to a script, so that it doesn't run for every job 4 years ago
David Schweikert 5a6a61cb32 update coverage badge link 4 years ago
David Schweikert 4f16eea49f use int64_t for time-related variables 4 years ago
David Schweikert 2dbe46f936 remove debug output 4 years ago
David Schweikert 363396c28f use int64_t everywhere, instead of long and 10us values 4 years ago
David Schweikert 88ef7a7b98 Merge branch 'testing-improvements' into develop 4 years ago
David Schweikert 73bfc121c2 more travis-ci improvements 4 years ago
David Schweikert d06b8fcea3
Merge pull request #196 from schweikert/travis-improvements
Travis CI improvements, add macos testing
4 years ago
David Schweikert 5655b7664c travis-ci improvements 4 years ago
David Schweikert 3bb2811139 travis-ci: use xenial autotools instead of building them 4 years ago
David Schweikert 2f71a6a701 travis-ci improvements, add macos testing 4 years ago
David Schweikert 9682f3e49d add a not about unprivileged mode 4 years ago
David Schweikert a136764f8c always exclude IP header in returned size 4 years ago
David Schweikert 43f6e3498e print lost pings in loop and count mode, fixes #175 4 years ago
David Schweikert 130b1d6f9b revert sprint_tm change doing apparent wrong casting 4 years ago
David Schweikert fec099871c fix compiler warning 4 years ago
David Schweikert da27697eb4 small formatting fixes to printed time 4 years ago
David Schweikert fe4388ca3d use int64_t whenever time is stored, fixes #195 4 years ago
David Schweikert eb87a2affd use int64_t instead of struct timespec everywhere
This should be more efficient and is also easier to read.
4 years ago
David Schweikert 5473c7d734 remove unused host_entry fields 4 years ago
David Schweikert ac3eb34ad7 Merge branch 'develop' of github.com:schweikert/fping into develop 4 years ago
David Schweikert 2cb373463f simplify timespec conversions to ns, prepare mocking of receive_packet 4 years ago
David Schweikert 6505832d6a
Merge pull request #194 from Kiskae/portable_signals
Improve portability of signal handling
4 years ago
David van Leusen 254573f241 use sigaction when possible 4 years ago
David van Leusen 69f7277076 implement finish handler through flag instead of direct call in signal handler 4 years ago
David Schweikert 2b5c0e62ec
Merge pull request #193 from schweikert/timeout-events
refactored event loop, now for each ping create both next-ping+timeout events
4 years ago
David Schweikert bb8d71ef27 refactored event loop, now for each ping we create both a ping and a timeout event 4 years ago
Steven Noonan 6600b04152 only use getsockname() for identity with SOCK_DGRAM sockets
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
4 years ago
David Schweikert 8152668607 update CHANGELOG 4 years ago
David Schweikert c7437d8f61
Merge pull request #187 from Polynomial-C/disable-ipv6_build_fix
Fix build with --disable-ipv6
4 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>
4 years ago
David Schweikert 08c83453f3 Merge branch 'v4.x' into develop 4 years ago
David Schweikert 3690be9cdd avoid including ci/build in dist tarball 4 years ago
David Schweikert 9731556633 prepare for version 5.x 4 years ago
David Schweikert c1d3f65694 update changelog 4 years ago
David Schweikert 721af135db
Merge pull request #136 from tycho/high-resolution-clock-sources
Move to 1us resolution for latency measurements
4 years ago
David Schweikert c27f37c91c prepare release 4.3 4 years ago
David Schweikert 97f995f38e get rid of deprecated bzero() 4 years ago
David Schweikert efc5ed3263 Use line buffering for stdout. fixes #179 4 years ago
David Schweikert e38f2b221c add missing files from tar.gz (ci, contrib, README.md) - fixes #178 4 years ago