head 1.9; access; symbols pkgsrc-2017Q1:1.8.0.4 pkgsrc-2017Q1-base:1.8 pkgsrc-2016Q4:1.8.0.2 pkgsrc-2016Q4-base:1.8 pkgsrc-2016Q3:1.7.0.20 pkgsrc-2016Q3-base:1.7 pkgsrc-2016Q2:1.7.0.18 pkgsrc-2016Q2-base:1.7 pkgsrc-2016Q1:1.7.0.16 pkgsrc-2016Q1-base:1.7 pkgsrc-2015Q4:1.7.0.14 pkgsrc-2015Q4-base:1.7 pkgsrc-2015Q3:1.7.0.12 pkgsrc-2015Q3-base:1.7 pkgsrc-2015Q2:1.7.0.10 pkgsrc-2015Q2-base:1.7 pkgsrc-2015Q1:1.7.0.8 pkgsrc-2015Q1-base:1.7 pkgsrc-2014Q4:1.7.0.6 pkgsrc-2014Q4-base:1.7 pkgsrc-2014Q3:1.7.0.4 pkgsrc-2014Q3-base:1.7 pkgsrc-2014Q2:1.7.0.2 pkgsrc-2014Q2-base:1.7 pkgsrc-2014Q1:1.6.0.88 pkgsrc-2014Q1-base:1.6 pkgsrc-2013Q4:1.6.0.86 pkgsrc-2013Q4-base:1.6 pkgsrc-2013Q3:1.6.0.84 pkgsrc-2013Q3-base:1.6 pkgsrc-2013Q2:1.6.0.82 pkgsrc-2013Q2-base:1.6 pkgsrc-2013Q1:1.6.0.80 pkgsrc-2013Q1-base:1.6 pkgsrc-2012Q4:1.6.0.78 pkgsrc-2012Q4-base:1.6 pkgsrc-2012Q3:1.6.0.76 pkgsrc-2012Q3-base:1.6 pkgsrc-2012Q2:1.6.0.74 pkgsrc-2012Q2-base:1.6 pkgsrc-2012Q1:1.6.0.72 pkgsrc-2012Q1-base:1.6 pkgsrc-2011Q4:1.6.0.70 pkgsrc-2011Q4-base:1.6 pkgsrc-2011Q3:1.6.0.68 pkgsrc-2011Q3-base:1.6 pkgsrc-2011Q2:1.6.0.66 pkgsrc-2011Q2-base:1.6 pkgsrc-2011Q1:1.6.0.64 pkgsrc-2011Q1-base:1.6 pkgsrc-2010Q4:1.6.0.62 pkgsrc-2010Q4-base:1.6 pkgsrc-2010Q3:1.6.0.60 pkgsrc-2010Q3-base:1.6 pkgsrc-2010Q2:1.6.0.58 pkgsrc-2010Q2-base:1.6 pkgsrc-2010Q1:1.6.0.56 pkgsrc-2010Q1-base:1.6 pkgsrc-2009Q4:1.6.0.54 pkgsrc-2009Q4-base:1.6 pkgsrc-2009Q3:1.6.0.52 pkgsrc-2009Q3-base:1.6 pkgsrc-2009Q2:1.6.0.50 pkgsrc-2009Q2-base:1.6 pkgsrc-2009Q1:1.6.0.48 pkgsrc-2009Q1-base:1.6 pkgsrc-2008Q4:1.6.0.46 pkgsrc-2008Q4-base:1.6 pkgsrc-2008Q3:1.6.0.44 pkgsrc-2008Q3-base:1.6 cube-native-xorg:1.6.0.42 cube-native-xorg-base:1.6 pkgsrc-2008Q2:1.6.0.40 pkgsrc-2008Q2-base:1.6 cwrapper:1.6.0.38 pkgsrc-2008Q1:1.6.0.36 pkgsrc-2008Q1-base:1.6 pkgsrc-2007Q4:1.6.0.34 pkgsrc-2007Q4-base:1.6 pkgsrc-2007Q3:1.6.0.32 pkgsrc-2007Q3-base:1.6 pkgsrc-2007Q2:1.6.0.30 pkgsrc-2007Q2-base:1.6 pkgsrc-2007Q1:1.6.0.28 pkgsrc-2007Q1-base:1.6 pkgsrc-2006Q4:1.6.0.26 pkgsrc-2006Q4-base:1.6 pkgsrc-2006Q3:1.6.0.24 pkgsrc-2006Q3-base:1.6 pkgsrc-2006Q2:1.6.0.22 pkgsrc-2006Q2-base:1.6 pkgsrc-2006Q1:1.6.0.20 pkgsrc-2006Q1-base:1.6 pkgsrc-2005Q4:1.6.0.18 pkgsrc-2005Q4-base:1.6 pkgsrc-2005Q3:1.6.0.16 pkgsrc-2005Q3-base:1.6 pkgsrc-2005Q2:1.6.0.14 pkgsrc-2005Q2-base:1.6 pkgsrc-2005Q1:1.6.0.12 pkgsrc-2005Q1-base:1.6 pkgsrc-2004Q4:1.6.0.10 pkgsrc-2004Q4-base:1.6 pkgsrc-2004Q3:1.6.0.8 pkgsrc-2004Q3-base:1.6 pkgsrc-2004Q2:1.6.0.6 pkgsrc-2004Q2-base:1.6 pkgsrc-2004Q1:1.6.0.4 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.6.0.2 pkgsrc-2003Q4-base:1.6 netbsd-1-6-1:1.4.0.6 netbsd-1-6-1-base:1.4 netbsd-1-6:1.4.0.8 netbsd-1-6-RELEASE-base:1.4 pkgviews:1.4.0.4 pkgviews-base:1.4 buildlink2:1.4.0.2 buildlink2-base:1.4 netbsd-1-5-PATCH003:1.4 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.1.1.1 netbsd-1-4-PATCH003:1.1.1.1 FreeBSD-current-2000-05-19:1.1.1.1 FREEBSD:1.1.1; locks; strict; comment @# @; 1.9 date 2017.05.20.11.25.50; author adam; state dead; branches; next 1.8; commitid 85FmZKObSSGvv7Sz; 1.8 date 2016.11.01.14.53.29; author adam; state Exp; branches; next 1.7; commitid RQMwpc2cUffU5rsz; 1.7 date 2014.05.09.15.28.53; author sborrill; state Exp; branches; next 1.6; commitid QpEenJnbIaqgrSzx; 1.6 date 2003.09.04.12.47.38; author abs; state Exp; branches; next 1.5; 1.5 date 2003.03.24.15.14.33; author bouyer; state dead; branches; next 1.4; 1.4 date 2002.02.18.18.40.41; author abs; state Exp; branches; next 1.3; 1.3 date 2001.08.23.17.15.15; author abs; state Exp; branches; next 1.2; 1.2 date 2001.01.28.04.03.25; author hubertf; state Exp; branches; next 1.1; 1.1 date 2000.05.19.10.20.36; author abs; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.05.19.10.20.36; author abs; state Exp; branches; next ; desc @@ 1.9 log @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 @ text @$NetBSD: patch-aa,v 1.8 2016/11/01 14:53:29 adam Exp $ Fix for NetBSD-alpha. --- src/fping.c.orig 2015-10-21 19:02:56.000000000 +0000 +++ src/fping.c @@@@ -1493,8 +1493,10 @@@@ int wait_for_reply(long wait_time) ip = ( struct ip* )buffer; #ifndef IPV6 -#if defined( __alpha__ ) && __STDC__ && !defined( __GLIBC__ ) +#if defined( __alpha__ ) && __STDC__ && !defined( __GLIBC__ ) && !defined( __NetBSD__ ) /* The alpha headers are decidedly broken. + * XXX _WHAT_ 'alpha'? OSF? True64? Linux?... Certainly not NetBSD + * XXX If defining for a particular broken OS then _include the OS_. * Using an ANSI compiler, it provides ip_vhl instead of ip_hl and * ip_v. So, to get ip_hl, we mask off the bottom four bits. */ @ 1.8 log @Changes 3.13: * Fix ICMP errors sometimes causing crashes with fping >= 3.11 @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.7 2014/05/09 15:28:53 sborrill Exp $ @ 1.7 log @Update to fping 3.10. Changes: 2014-05-03 David Schweikert * 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 * 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 * Version 3.8 * Fix segmentation fault introduced in version 3.7 with loop mode * (reported by Vlad Glagolev, #55) 2013-11-04 David Schweikert * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 * 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 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 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 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 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 . -- Anibal Monsalve Salazar 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 . -- Anibal Monsalve Salazar 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 . -- Anibal Monsalve Salazar 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 -- Anibal Monsalve Salazar 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 -- Anibal Monsalve Salazar 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 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 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 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 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 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 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. @ text @d1 1 a1 1 $NetBSD$ d3 6 a8 3 --- src/fping.c.orig 2014-05-04 21:33:12.000000000 +0100 +++ src/fping.c 2014-05-09 16:25:45.000000000 +0100 @@@@ -1521,8 +1521,10 @@@@ a9 1 ip = ( struct ip* )buffer; @ 1.6 log @Update fping and fping6 to 2.4b2nb1. Add !defined(__NetBSD__) to a broken __alpha__ test. @ text @d3 3 a5 5 --- fping.c.orig Fri Jul 20 18:10:26 2001 +++ fping.c @@@@ -1547,8 +1547,10 @@@@ int wait_for_reply( void ) ip = ( struct ip* )buffer; d7 2 a9 1 - /* The alpha headers are decidedly broken. d11 6 a16 6 + /* The alpha headers are decidedly broken. + * XXX _WHAT_ 'alpha'? OSF? True64? Linux?... Certainly not NetBSD + * XXX If defining for a particular broken OS then _include the OS_. * Using an ANSI compiler, it provides ip_vhl instead of ip_hl and * ip_v. So, to get ip_hl, we mask off the bottom four bits. */ @ 1.5 log @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 @ text @d1 1 a1 1 $NetBSD: patch-aa,v 1.4 2002/02/18 18:40:41 abs Exp $ d3 3 a5 13 --- Makefile.orig Mon Feb 18 18:37:42 2002 +++ Makefile @@@@ -2,10 +2,10 @@@@ PROG= fping OBJS= fping.o SRC= fping.c -BIN= /usr/local/bin -MAN= /usr/man/manl +BIN= $(PREFIX)/sbin +MAN= $(PREFIX)/man/man8 MANSRC= fping.man -MANDST= fping.l +MANDST= fping.8 d7 1 a7 4 # # Interval is the minimum amount of time between sending a ping packet to @@@@ -43,8 +43,8 @@@@ # d9 9 a17 8 install: - install -c -m 4555 -o root -s $(PROG) $(BIN)/$(PROG) - install -c -m 0444 -o root $(MANSRC) $(MAN)/$(MANDST) + ${BSD_INSTALL_PROGRAM} $(PROG) $(BIN)/$(PROG) + ${BSD_INSTALL_MAN} $(MANSRC) $(MAN)/$(MANDST) clean: rm -f a.out core *~ *.o $(PROG) @ 1.4 log @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. @ text @d1 1 a1 1 $NetBSD$ @ 1.3 log @Fix for Linux @ text @d3 1 a3 1 --- Makefile.orig Thu Aug 23 18:10:14 2001 @ 1.2 log @Use BSD_INSTALL_* macros to allow stripping via $STRIPFLAG. Fixes PR 12057 by Greg Woods @ text @d3 1 a3 1 --- Makefile.orig Sun Jan 28 04:58:52 2001 @ 1.1 log @Initial revision @ text @d3 2 a4 2 --- Makefile.orig Tue Mar 25 01:18:00 1997 +++ Makefile Tue Mar 25 01:18:58 1997 d19 11 @ 1.1.1.1 log @fping 1.20 - Quickly ping many hosts w/o flooding the network @ text @@