Up to [cvs.NetBSD.org] / pkgsrc / net / fping
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
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: add upstream bug report URL to patch
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)
net: Replace RMD160 checksums with BLAKE2s checksums All checksums have been double-checked against existing RMD160 and SHA512 hashes Not committed (merge conflicts...): net/radsecproxy/distinfo The following distfiles could not be fetched (fetched conditionally?): ./net/citrix_ica/distinfo citrix_ica-10.6.115659/en.linuxx86.tar.gz ./net/djbdns/distinfo dnscache-1.05-multiple-ip.patch ./net/djbdns/distinfo djbdns-1.05-test28.diff.xz ./net/djbdns/distinfo djbdns-1.05-ignoreip2.patch ./net/djbdns/distinfo djbdns-1.05-multiip.diff ./net/djbdns/distinfo djbdns-cachestats.patch
net: Remove SHA1 hashes for distfiles
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
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
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
Add a patch so that this builds on netbsd-6 as well. OK from wiz@
Changes 3.13: * Fix ICMP errors sometimes causing crashes with fping >= 3.11
Add SHA512 digests for distfiles for net category Problems found with existing digests: Package haproxy distfile haproxy-1.5.14.tar.gz 159f5beb8fdc6b8059ae51b53dc935d91c0fb51f [recorded] da39a3ee5e6b4b0d3255bfef95601890afd80709 [calculated] Problems found locating distfiles: Package bsddip: missing distfile bsddip-1.02.tar.Z Package citrix_ica: missing distfile citrix_ica-10.6.115659/en.linuxx86.tar.gz Package djbdns: missing distfile djbdns-1.05-test25.diff.bz2 Package djbdns: missing distfile djbdns-cachestats.patch Package djbdns: missing distfile 0002-dnscache-cache-soa-records.patch Package gated: missing distfile gated-3-5-11.tar.gz Package owncloudclient: missing distfile owncloudclient-2.0.2.tar.xz Package poink: missing distfile poink-1.6.tar.gz Package ra-rtsp-proxy: missing distfile rtspd-src-1.0.0.0.tar.gz Package ucspi-ssl: missing distfile ucspi-ssl-0.70-ucspitls-0.1.patch Package waste: missing distfile waste-source.tar.gz Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail.
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.
Add RMD160 digests.
Update fping and fping6 to 2.4b2nb1. Add !defined(__NetBSD__) to a broken __alpha__ test.
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.
Fix for Linux
Move to sha1 checksum, and/or add distfile sizes.
+ move the distfile digest/checksum value from files/md5 to distinfo + move the patch digest/checksum values from files/patch-sum to distinfo