Up to [cvs.NetBSD.org] / pkgsrc / net / fping
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
fping: updated to 5.5 fping 5.5 (2025-12-31) New features New option -J / --json for JSON output. See doc/fping-json.md for the JSON schema. This feature is still in alpha and the schema might change in future releases The -g, --generate option now also supports IPv6 addresses New option --seqmap-timeout to control the time after which sequence numbers can be used again Bugfixes and other changes Fix OpenBSD sprintf() warning Fix fallback to SO_TIMESTAMP if SO_TIMESTAMPNS is not available When reading target names from file or standard input, lines longer than the static buffer are no longer interpreted as more than one line Typo fix in error message when SO_BINDTODEVICE fails Options --print-tos and --print-ttl now also work for IPv6, and no longer require privileges Report received ICMPv6 error messages Suppress duplicate reports in count mode with -q, --quiet or -Q, --squiet Switch to alpine-based multi-stage Docker build to reduce image size and improve build performance; add OpenContainers-compatible labels Print receive ping moved to new functions Avoid unsigned overflow when determining the memory size to save response times on systems where size_t is the same as unsigned int Document the new minimum value for the -p option Fix build without IPv6 support Fix debug build use of dbg_printf in fping.c Remove MacOS-specific test for -I option GitHub Actions fixes (thanks @gsnw-sebast) Fix measurement of time for timed reports (-Q) to start after DNS name resolution. Updated autoconf from 2.71 to 2.72 Updated automake from 1.16.5 to 1.18.1 Updated libtool from 2.4.6 to 2.5.4 Implemented verification of autotools tarballs in Github actions. Implemented stricter flag value checking (e.g. -c 10xyz is not accepted anymore).
fping: updated to 5.4 5.4 Bugfixes Memory allocation safety checks for event storage (thanks David.A for the bug report) Fix off-by-one boundary check in seqmap code (thanks David.A for the bug report) The minimum value for the period (-p flag) is now 0.001 milliseconds, since it probably never makes sense to use a smaller value, and to avoid doing a very large memory allocation for event storage.
fping: updated to 5.3 fping 5.3 (2025-01-02) New features - New option --icmp-timestamp to send ICMP timestamp requests (ICMP type 13) instead of ICMP Echo requests - New option --print-ttl to print returned TTL value - New option --print-tos to print returned TOS value @auerswal and @gsnw-sebast) - New option --check-source - Predefined various timestamp formats - Print cumulative stats with -Q SECS,cumulative Bugfixes and other changes - ci: Upgrade actions/upload-artifact to v4 - ci: Azure Pipeline only trigger when changes are made in the development branch - ci: Upgrade actions/upload-artifact to v3 - ci: Azure Pipeline YAML add docker build - Dockerfile: change distribution from ubuntu to debian @gsnw-sebast) - Fix warning unused parameter 'reply_timestamp' under macOS @gsnw-sebast) - Fix increase maximum -s value to 65507 - ci: use File::Temp to create temporary directory - Fix -k, --fwmark with setuid fping executable - Another batch of additional tests (take 2) - Document that -a and -u are overridden by -c and -C - Fix macOS build warning sets SEQMAP_TIMEOUT_IN_NSSEQMAP_TIMEOUT_IN_NS as INT64_C - Fix inconsistent limits for address generation via -g, --generator using either range or CIDR - Some additional tests - ci: skip an unreliable test on macOS - Fix incorrect return-value check for a scanf like function (CWE-253) thanks @gsnw-sebast) - A few more tests to increase code coverage a little bit - Github fix: Change to codeql-action-v2 - Developer function: Debug with Visual Studio Code
fping: updated to 5.2 fping 5.2 (2024-04-21) New features - New option -X / --fast-reachable to exit immediately once N hosts have been found - New option -k / -fwmark to set Linux fwmark mask Bugfixes and other changes - Always output fatal error messages - Fallback to SO\_TIMESTAMP if SO\_TIMESTAMPNS is not available - Fix "not enough sequence numbers available" error on BSD-like systems - Fix running in unprivileged mode - Fix build issue for NetBSD/alpha - Fix build issue for OpenBSD/alpha - Fix build warning for long int usage - Fix build error with musl libc - Fix to guard against division by zero - Decouple -a/-u effects from -c - Added contrib/Dockerfile - Remove host from Netdata chart titles - Add additional tests - Update github action os images - Fix Azure pipeline tests - Various autoconf fixes - Extended configure script with --enable-debug and output cpu usage - Documentation: Update Netdata website link - Documentation: fix description of --file option - Documentation: improve exit status description - Documentation: move description of -i MSEC - Documentation: improve help output for options -c and -C
fping: update to 5.1. fping 5.1 (2022-02-06) ====================== ## Bugfixes and other changes - Use setcap to specify specific files in fping.spec (#232, thanks @zdyxry) - Netdata: use host instead name as family label (#226, thanks @k0ste) - Netdata: use formatstring macro PRId64 (#229, thanks @gsnw) - Allow -4 option to be given multiple times (#215, thanks @normanr) - Documentation fix (#208, thanks @timgates42) - Retain privileges until after privileged setsockopt (#200, thanks @simetnicbr) - Set bind to source only when option is set (#198, thanks @dinoex) - Update Azure test pipeline (#197, thanks @gsnw) - Fix getnameinfo not called properly for IPv4 (#227, thanks @aafbsd) - Fixed wrong timestamp under Free- and OpenBSD and macOS (#217, thanks @gsnw) - Documentation updates (#240, thanks @auerswal) - Updated autotools (autoconf 2.71, automake 1.16.5, libtool 2.4.6) fping 5.0 (2020-08-05) ====================== ## Incompatible Changes - In non-quiet loop and count mode, a line is printed for every lost packet (#175, thanks @kbucheli): ``` $ fping -D -c2 8.8.8.8 8.8.8.7 [1596092373.18423] 8.8.8.8 : [0], 64 bytes, 12.8 ms (12.8 avg, 0% loss) [1596092374.18223] 8.8.8.7 : [0], timed out (NaN avg, 100% loss) [1596092374.18424] 8.8.8.8 : [1], 64 bytes, 12.3 ms (12.5 avg, 0% loss) [1596092375.18344] 8.8.8.7 : [1], timed out (NaN avg, 100% loss) 8.8.8.8 : xmt/rcv/%loss = 2/2/0%, min/avg/max = 12.3/12.5/12.8 8.8.8.7 : xmt/rcv/%loss = 2/0/100% ``` - The returned size in bytes now always excludes the IP header, so if before it reported '84 bytes' e.g. when using 'fping -l', now it reports '64 bytes'. This is to make the reported size consistent with ping(8) from iputils and also with fping when pinging a IPv6 host (which never included the IPv6 header size). ## New features - The number of sent pings is only counted when the pings are received or have timed out, ensuring that the loss ratio will be always correct. This makes it possible, for example, to use loop mode (-l) with interval statistics (-Q) and a timeout larger than period, without having the issue that initially some pings would be reported as missing (#193) - Improved precision of measurements from 10us to 1us (#136, thanks @tycho) ## Bugfixes and other changes - The reported size of received packets is now always correct on Linux even for packets > 4096 bytes (#180) - Travis CI automated testing now also macos testing and additional ubuntu distributions (#196)
fping: updated to 4.4 fping 4.4 Bugfixes and other changes - Fix wrong ident used for normal (non-unprivileged) pings - Fix build with --disable-ipv6
fping: updated to 4.3 fping 4.3 New features Linux unprivileged ping support Add SIGQUIT summary support similar to ping Bugfixes and other changes Corrected long option name of -s to --stats Do not fail if using fping6 with -6 flag Fail if interface binding (-I) does not work Fix using option -4 when fping is compiled IPv4-only Add Azure pipeline test build GCC 10 compatibility fixes Macos build fix Fix xmt stats in Netdata output Only increase num_alive if response is not a duplicate Use line buffering for stdout
all: migrate homepages from http to https pkglint -r --network --only "migrate" As a side-effect of migrating the homepages, pkglint also fixed a few indentations in unrelated lines. These and the new homepages have been checked manually.
fping: updated to 4.2 fping 4.2: New features * New option -x / --reachable to check if the number of reachable hosts is >= a certain number. Useful for example to implement connectivity-checks Bugfixes and other changes * Allow decimal numbers for '-t', '-i', '-p', and '-Q' * Fix build with --disable-ipv6 * Fix hang with '-6', with ipv6 kernel module, but not loaded * Assume '-6' if the binary is named 'fping6' (this is mostly for special embedded-distro use cases, and not meant to be used generally in place of compiling IPv6-only binary or using '-6' * Get rid of warning "timeout (-t) value larger than period (-p) produces unexpected results"
fping: updated to 4.1 4.1: Fix problem when socket fd is 0 Fix running on servers with disabled IPv6 Allow running "fping -h" or "--help" even when raw socket can't be opened Fix build issue with FreeBSD and IPv6
Package requires C99. SunOS requires XPG6 and __EXTENSIONS__.
Changes 4.0: Incompatible Changes - fping and fping6 unification - Option -n, not the same as -d anymore - Discarding of late packets - No restrictions by default - Default interval (-i) changed from 25ms to 10ms New features - Unified 'fping' and 'fping6' into one binary - Long option names for all options - IPv6 enabled by default - New option -4 to force IPv4 - New option -6 to force IPv6 - Keep original name if a hostname is given with -n/--name - Option -d/--rdns now always does a rdns-lookup, even for names, as '-n' was doing until now - Enforce -t timeout on reply packets, by discarding late packets - Auto-adjust timeout for -c/-C/-l mode to value of -p Bugfixes and other changes - -i/-p restrictions disabled by default (enable with --enable-safe-limits) - Default interval -i changed from 25ms to 10ms - Fix compatibility issue with GNU Hurd - A C99 compiler is now required - Option parsing with optparse (https://github.com/skeeto/optparse) - New changelog file format
define n_time on SunOS
Changes 3.13: * Fix ICMP errors sometimes causing crashes with fping >= 3.11
Update to fping 3.10.
Changes:
2014-05-03 David Schweikert <david@schweikert.ch>
* Version 3.10
* Fix confusing error message with -g and IPv6 addresses (#58, reported by
* Axel Beckert)
* Allow option '-f' also for non-root (since setuid privileges are
* dropped)
* Do not retry twice DNS lookup on DNS lookup problem
* Remove support for NIS groups
* Better document -B backoff-factor and when it can be used (#33, Oleksiy
* Zagorskyi)
* More tests added
2014-03-08 David Schweikert <david@schweikert.ch>
* Version 3.9
* Fix random output on socket error (reported by Aleksandrs Saveljevs,
* #56)
* Support ppc64le architecture by including alpha libtool version
(reported by Amit Kumar Gupta and Aravinda B Thunug)
* Fix compilation problem on FreeBSD (#57)
* Initial test suite and continous intergration (with travis-ci.org /
* coveralls.io)
* Don't output usage information on error
2013-11-08 David Schweikert <david@schweikert.ch>
* Version 3.8
* Fix segmentation fault introduced in version 3.7 with loop mode
* (reported
by Vlad Glagolev, #55)
2013-11-04 David Schweikert <david@schweikert.ch>
* Version 3.7
* Allow running as non-root on Mac OS X by using non-privileged ICMP (#7)
* Remove unnecessary IPv6 socket options
* Fix again compatibility issue with FreeBSD (Shawn Chu)
* Fix fping hanging forever on permanent sendto failure (Shawn Chu)
* Fix duplicate echo reply packets causing early stop in count mode
(reported by Ramon Schwammberger, #53)
2013-10-10 David Schweikert <david@schweikert.ch>
* Version 3.6
* Fix loop issue after 65536 pings (reported by Peter Folk and GBert, #12)
* Minimum ping data size is now 0
* Removed setsockopt IPV6_CHECKSUM, which shouldn't be set and breaks
compiling on Solaris (reported by Juergen Arndt)
* Fix wrong min RTT value with -Q option (reported by Alexander Ivanov,
* #51)
2013-05-22 David Schweikert <david@schweikert.ch>
* Version 3.5
* Fix sprint_tm buffer size crash (reported by Japheth Cleaver)
* Addded -D flag to print timestamps (Toke Høiland-Jørgensen)
* Fix fping6 build on OS X 10.8 (unknown contributor)
* Fix compatibility issue with FreeBSD (Alexandre Raynaud, Jason Harris,
* #39)
* Fping.spec: fix setuid permissions and provides fping6 (Marcus Vinicius
* Ferreira)
* Re-create configure script with autoconf 2.69 for aarch64 support (Chuck
* Anderson, #45)
2012-09-04 David Schweikert <david@schweikert.ch>
* Version 3.4
* Revert "Output statistics to stdout instead of stderr", because it
* breaks
tools assuming the output goes to stderr
2012-08-19 David Schweikert <david@schweikert.ch>
* Version 3.3
* Do not output icmp errors with -q (#1)
* Add --enable-ipv4 and --enable-ipv6 options to configure (Niclas
* Zeising)
* Fix removing of unreachable hosts when doing loop (Thomas Liske, #13
* #23)
* Fix -A for fping6 (reported by Matt LaPlante, #14)
* Fix "options inet6" breaking IPv4 name resolution (reported by Matt
* LaPlante, #17)
* Output statistics to stdout instead of stderr (suggested by Simon
* Leinen, #9)
* Set default data size to 56 bytes on all architectures (#18)
* Added contrib/fping.spec (Stephen Schaefer, #24)
* Convert man-page source to POD for easier maintenance
* Fix error message on DNS error for IPv6 hosts (#27)
* Fix -n flag in fping6 (#28)
* Man-page fix: TOS option typo (Thomas Liske, #23)
* Man-page fix: inconsistency in regards to numeric arguments (Robert
* Henney)
* Man-page fix: better description of option -q (#15)
2012-05-29 David Schweikert <david@schweikert.ch>
* Version 3.2
* Improve documentation for -g option (G.W. Haywood)
* Performance optimization for big select timeouts (#10, Andrey
* Bondarenko)
* Fix restart of select call after interrupt signal (#8, Boian Bonev)
* Fix infinite loop caused by linked list corruption (#11, Boian Bonev)
2012-04-26 David Schweikert <david@schweikert.ch>
* Version 3.1
* -g option (generate): exclude network and broadcast address for cidr
ranges (idea by Eric Brander)
* do not explicitely check if running as root, to make it possible to
install fping with linux capabilities instead of making it setuid
(setcap cap_net_raw+ep fping)
* ANSI C (C89) compiler now a requirement
* Portability fixes
* Reorganized source directory
* Bugfix: fix timeout issue on Solaris (Sandor Geller)
* Man-page fixes (Axel Beckert)
* Added -H option to specify number of hops (Paul Duda)
* Output usage information to stdout when called with -h (Paul Duda)
2011-12-28 David Schweikert <david@schweikert.ch>
* Version 3.0
* rewritten main loop for improved performance
* -T parameter (select timeout) now obsolete
* Maintenance taken over from unresponsive previous maintainer
(anybody please step up, if you disagree)
* New homepage: www.fping.org
2009-12-21 Tobi Oetiker <tobi@oetiker.ch>
* Version v2.4b2-to3-ipv6
* added -On option to set the TOS octet
* Removed unused variables from code
* updated to current autoconf standards
* Merged Debian changes (see below)
----------------------------------------------------------------------
fping (2.4b2-to-ipv6-16.1) unstable; urgency=low
* NMU during Moenchengladbach BSP
* Fixes FTBFS on kfreebsd (Closes: #555398)
* Fixes typo "Paramter" in binary
-- Axel Beckert <abe@deuxchevaux.org> Sat, 23 Jan 2010 16:22:02 +0100
fping (2.4b2-to-ipv6-16) unstable; urgency=low
* Fix the following bugs
- Network byte order sensitivity was missing completely.
Added hopefully all missing calls.
- The sequence numbering scheme used led to packet drops.
Changed it to a more senseful numbering scheme.
- Some minor C programming mistakes ('=' instead of '==').
Patch by Stephan Fuhrmann; closes: #502569
* Add support for command line select timeout setting
Patch by Marton Balint; closes: #502575
* Remove symlinks in /usr/sbin; closes: #377732
* Standards-Version is 3.8.0
-- Anibal Monsalve Salazar <anibal@debian.org> Sat, 18 Oct 2008 12:04:52
-- +1100
fping (2.4b2-to-ipv6-15) unstable; urgency=low
* Added interface binding (-I) for fping
Patch by Peter Naulls <peter@mushroomnetworks.com>
Closes: #439014
* Fixed a couple of typos in fping.8. Closes: #423180
* Added homepage control header
* Bumped Standards-Version to 3.7.3
* Fixed the following lintian issue:
- debian-rules-sets-DH_COMPAT
-- Anibal Monsalve Salazar <anibal@debian.org> Mon, 03 Mar 2008 17:46:17
-- +1100
fping (2.4b2-to-ipv6-13) unstable; urgency=low
* Fixed stdout flush problem, closes: #340146.
Patch by Bart Martens <bart.martens@advalvas.be>.
-- Anibal Monsalve Salazar <anibal@debian.org> Fri, 30 Dec 2005 08:30:09
-- +1100
fping (2.4b2-to-ipv6-12) unstable; urgency=low
* Fixed "problem with option -r (retry limit)", closes: #318402.
Patch by Qingning Huo <qingningh@lanware.co.uk>.
-- Anibal Monsalve Salazar <anibal@debian.org> Sat, 08 Oct 2005 21:26:35
-- +1000
fping (2.4b2-to-ipv6-11) unstable; urgency=low
* Fixed "would be useful to specify 'source address' like ping for multi
homed machines", closes: #198486.
Patch by Marc Haber <mh+debian-bugs@zugschlus.de>.
-- Anibal Monsalve Salazar <anibal@debian.org> Thu, 02 Jun 2005 08:14:54
-- +1000
fping (2.4b2-to-ipv6-10) unstable; urgency=low
* Fixed "unnecessary delay with the -c option after the last packet"
(Closes: #293856). Patch by Niko Tyni <ntyni@iki.fi>
-- Anibal Monsalve Salazar <anibal@debian.org> Sun, 06 Feb 2005 23:25:57
-- +1100
fping (2.4b2-to-ipv6-9) unstable; urgency=low
* Fixed "fping6 always does reverse lookup" (Closes: #273647).
Patch by Jeroen Massar and forwarded by Bernhard Schmidt
<berni@birkenwald.de>
-- Anibal Monsalve Salazar <A.Monsalve.Salazar@IEEE.org> Mon, 10 Jan 2005
-- 00:01:32 +1100
fping (2.4b2-to-ipv6-7) unstable; urgency=low
* Build fping in build/ipv[46] instead of build and build-ipv6.
* Made DNS errors non-fatal for IPv6 (closes: #198056).
-- Herbert Xu <herbert@debian.org> Fri, 20 Jun 2003 21:36:30 +1000
fping (2.4b2-to-ipv6-6) unstable; urgency=low
* Do not use incorrect linux.h file (closes: #85468).
-- Herbert Xu <herbert@debian.org> Sat, 17 May 2003 14:13:11 +1000
fping (2.4b2-to-ipv6-5) unstable; urgency=low
* Fixed yet another divide by zero bug (closes: #148445).
-- Herbert Xu <herbert@debian.org> Tue, 4 Jun 2002 12:18:03 +1000
fping (2.4b2-to-ipv6-4) unstable; urgency=low
* Made fping6 setuid (closes: #136386).
* Moved fping back into bin.
* Partially applied IPv6 patch to fix IPv6 checksums (closes: #136479).
-- Herbert Xu <herbert@debian.org> Sun, 7 Apr 2002 20:36:56 +1000
fping (2.4b2-to-ipv6-3) unstable; urgency=low
* Added compatibility symlink for fping (closes: #135203).
-- Herbert Xu <herbert@debian.org> Sat, 23 Feb 2002 08:34:11 +1100
fping (2.4b2-to-ipv6-2) unstable; urgency=low
* Fixed another divide by zero error (closes: #132370).
-- Herbert Xu <herbert@debian.org> Thu, 7 Feb 2002 20:10:48 +1100
fping (2.4b2-to-ipv6-1) unstable; urgency=low
* New upstream release.
* Install fping into sbin as done by upstream.
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
DESTDIR support.
Fix inappropriate uses of ${LOCALBASE} or ${X11PREFIX} instead of
${PREFIX}.
Remove FreeBSD RCS Ids. pkgsrc has diverged too much for syncing to be useful.
Update fping and fping6 to 2.4b2nb1. Add !defined(__NetBSD__) to a broken __alpha__ test.
s/netbsd.org/NetBSD.org/
Upgrade to 2.4b2. Lots of change since 1.20, but it should be backward-compatible. 2.0 was a substential rewrite. Main changes: support some traditional ping features: loop mode, specify size of data packets, specify how many pings to send, interpret ICMPs other than ICMP Echo response. make timings in tenths of milliseconds do exponential backoff on retries port to more systems do better checking on whether received ICMP is for us added -g option for generating IPs from a start to an end value
Updated fping to 1.20nb1 When on an alpha you cannot be lazy and assume -1 matches INADDR_NONE Now mono.org's new alpha can run rconfig... This should make norm happy.
Refer to ${LOCALBASE}, not ${PREFIX} in post-install target.
Deprecate NO_WRKSUBDIR, replacing it with an explicit assignment of:
WRKSRC= ${WRKDIR}
This is much cleaner, much more indicative of what happens, and removes
another of the negative definitions (NO_.* = value).
Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.
Use BSD_INSTALL_* macros to allow stripping via $STRIPFLAG. Fixes PR 12057 by Greg Woods <woods@planix.com>
fping 1.20 - Quickly ping many hosts w/o flooding the network
Initial revision