debian/0000755000000000000000000000000012332506322007164 5ustar debian/iputils-arping.docs0000644000000000000000000000001112311005231012763 0ustar RELNOTES debian/iputils-clockdiff.manpages0000644000000000000000000000002012311005231014272 0ustar doc/clockdiff.8 debian/changelog0000644000000000000000000003621112332506322011041 0ustar iputils (3:20121221-5ubuntu2) utopic; urgency=medium * Mark ping and ping6 setuid again as there's currently no good ways to have capabilities be kept in all our images. (LP: #1302192) -- Stéphane Graber Wed, 07 May 2014 14:42:28 -0500 iputils (3:20121221-5ubuntu1) utopic; urgency=low * Merge from Debian unstable. Remaining changes: - Support cross-building. -- Michael Vogt Mon, 28 Apr 2014 16:58:55 +0200 iputils (3:20121221-5) unstable; urgency=low * Improve management of capabilities. * Set capabilities on all binaries. * Invalidate ping's DNS cache when a response comes from a new host (e.g. when processing an error message) (Closes: 732186, 736470) * Bump standards version to 3.9.5 (no changes) -- Noah Meyerhans Sat, 01 Feb 2014 13:15:39 -0800 iputils (3:20121221-4ubuntu1) trusty; urgency=medium * Resynchronise with Debian. Remaining changes: - Support cross-building. -- Colin Watson Thu, 09 Jan 2014 14:27:35 +0000 iputils (3:20121221-4) unstable; urgency=low * Cache DNS lookup results. (Closes: 109709) * Move the dependency on libcap2-bin to a Recommends instead, to avoid depending on a lower priority package. * Fix a typo in flood ping output. (Closes: 698287) * arping: When using -c, exit immediately if the specified number of queries are answered. (Closes: 686944) * Fix return hops counting in tracepath and tracepath6. (Closes: 629075) -- Noah Meyerhans Thu, 12 Dec 2013 23:54:51 -0800 iputils (3:20121221-3) unstable; urgency=low * Add build-depends on libgnutls-openssl-dev (Closes: 731561) * Fix arping and ping postinst scripts to better handle cases where capabilities aren't supported. (Closes: 731764) * Update debian/copyright to reflect the removal of the advertising clause from the UC Berkeley copyright statements. (Closes: 725470) -- Noah Meyerhans Mon, 09 Dec 2013 08:14:40 -0800 iputils (3:20121221-2) unstable; urgency=low * Silence erroneous "kernel is not very fresh" warnings. (Closes: 709052) * Cherry pick revision 608419a7 from upstream for traceroute max-hops options * Cherry pick revision cec404067 from upstream for tracepath, tracepath6 minor bugfixes * Enable the CAP_NET_RAW capability and strip the setuid bit on ping and ping6 binaries if possible. * Bump standards version to 3.9.4.0 (No changes needed.) -- Noah Meyerhans Sun, 08 Dec 2013 17:47:52 -0800 iputils (3:20121221-1ubuntu1) saucy; urgency=low * Resynchronise with Debian. Remaining changes: - Support cross-building. -- Colin Watson Thu, 16 May 2013 15:39:45 +0100 iputils (3:20121221-1) unstable; urgency=low * New upstream version * Replace libsysfs-dev with libcap-dev in build-deps (Closes: 627650, 609853) * Replace libssl-dev with gnutls-dev in build-deps * Remove obsolete debian/patches/fix-dead-host-ping-stats.diff * Remove obsolete debian/patches/add-icmp-return-codes.diff * Remove obsolete patch cleanup-docbook-formatting.diff * Remove obsolete patch fix_rfc4620_nodeinfo_queries -- Noah Meyerhans Tue, 14 May 2013 23:59:05 -0700 iputils (3:20101006-3ubuntu1) quantal; urgency=low * Resynchronise with Debian. Remaining changes: - Support cross-building. -- Colin Watson Tue, 02 Oct 2012 17:01:45 +0100 iputils (3:20101006-3) unstable; urgency=low * Fix CFLAGS, which never actually propagated from debian/rules to the compiler in the previous release (Closes: 656023) -- Noah Meyerhans Wed, 29 Aug 2012 10:17:28 -0700 iputils (3:20101006-2) unstable; urgency=low * Fix RFC 4620 node info queries in ping6 (Closes: 683324) * Fix regression in ping* causing audible notifications to always be enabled when flood pinging (Closes: 601147) * Flush stdout when processing truncated ping* replies (Closes: 628893) * Use dpkg-buildflags to set build flags. * Add build-arch and build-indep rules in debian/rules * Bump standards compliance to 3.9.3.1 -- Noah Meyerhans Sun, 19 Aug 2012 21:31:38 -0700 iputils (3:20101006-1ubuntu1) precise; urgency=low * Support cross-building (thanks to Wookey and Harry Liebel; LP: #872370). -- Colin Watson Tue, 08 Nov 2011 13:17:14 +0000 iputils (3:20101006-1) unstable; urgency=low * New upstream release. * Remove patches that are now applied upstream. * Update Vcs-* fields in debian/control to point to git repos. * Update debian/copyright to include the BSD license text. * Override lintian's possible-gpl-code-linked-with-openssl error on iputils-ping. ping6 links against libcrypto and is BSD licensed. -- Noah Meyerhans Sun, 20 Feb 2011 21:28:54 -0800 iputils (3:20100418-3) unstable; urgency=low * Apply upstream's fix to a coding error that prevented the broadcast address from being set correctly in arping (Closes: 585591) -- Noah Meyerhans Fri, 23 Jul 2010 21:44:24 -0700 iputils (3:20100418-2) unstable; urgency=high * Fix CVE-2010-2529 - resource consumption triggered by specially crafted ICMP echo reply -- Noah Meyerhans Fri, 23 Jul 2010 21:30:40 -0700 iputils (3:20100418-1) unstable; urgency=low * New upstream release. * Provide an iputils-clockdiff package (Closes: #199500) -- Noah Meyerhans Fri, 07 May 2010 23:58:53 -0700 iputils (3:20100214-1) unstable; urgency=low * New upstream release. * Convert to source format 3.0 (quilt) * Update standards version to 3.8.4.0. * Switch to debhelper compatibility version 7 * Remove netkit-ping from debian/control; we don't built it anymore -- Noah Meyerhans Sun, 04 Apr 2010 00:26:37 -0700 iputils (3:20071127-1) unstable; urgency=low * New upstream release. * Add Vcs-Browser and Vcs-Svn to debian/control * Update to standards version 3.7.3.0 * Stop ignoring the return value of "make clean" in debian/rules * Switch from debrecated Source-Version to binary:Version in netkit-ping dependencies. * Move debconf compat setting from debian/rules to debian/compat -- Noah Meyerhans Sun, 09 Dec 2007 22:47:52 -0500 iputils (3:20070202-3) unstable; urgency=low * Switch to quilt for managing patches. * Back out custom warning for kernels missing CONFIG_FILTER, since nobody is going to be missing that these days. -- Noah Meyerhans Sun, 28 Oct 2007 17:54:30 -0400 iputils (3:20070202-2) unstable; urgency=low * Removed Build-Depends on linux-kernel-headers (Closes: #433279) -- Noah Meyerhans Mon, 16 Jul 2007 09:58:56 -0400 iputils (3:20070202-1) unstable; urgency=low * New upstream version (Closes: Bug#285420, Bug#391618, Bug#404199) * Fix documentation for tracepath (Closes: Bug#185156) * Use alternatives to manage traceroute6 so we can be installed alongside ndisc6. Thanks to Rémi Denis-Courmont for the patch. (Closes: Bug#380677) * Bump standards version to 3.7.2.2 (no changes needed) -- Noah Meyerhans Thu, 12 Apr 2007 18:45:01 -0400 iputils (3:20020927-6) unstable; urgency=medium * Fix an error in the previous version that resulted in the offsets in cmsgbuf still getting set wrong. (basically I messed up my order of operations and sent pointers flying off into who knows where. Ooops.) * Make sure my .svn directories don't make it into the .diff.gz. -- Noah Meyerhans Tue, 30 Jan 2007 18:07:02 -0500 iputils (3:20020927-5) unstable; urgency=medium * fix typo in debian/control entry for netkit-ping * Fix error in pr_type where the index into the ttab2 array was off by 128. (Closes: Bug#293985) * Fix a bug in ping6.c where the cmsghdr struct associated with a device provided via the -I command line flag would clobber any existing cmsghdrs in cmsgbuf, which would exist of source routing information was provided. -- Noah Meyerhans Sat, 27 Jan 2007 11:45:34 -0500 iputils (3:20020927-4) unstable; urgency=medium * Acknowledge NMU * Apply patch from Loïc Minier to fix arping behavior when -w and -c command line flags are given and the target host does not reply. (Closes: Bug#233125) * Provide a netkit-ping package so there's a smooth upgrade path for people who had the old netkit ping implementation installed. (Closes: Bug#384012) * Apply patch from Rémi Denis-Courmont to fix incompatibilities with 2.4 and older 2.6 kernels in ping6 and tracepath6. (Closes: Bug#402121, Bug#397935) -- Noah Meyerhans Tue, 19 Dec 2006 17:05:27 -0500 iputils (3:20020927-3.1) unstable; urgency=low * NMU * Use IPV6_RECVHOPLIMIT instead of IPV6_HOPLIMIT in ping6 to build with current kernel headers. Closes: #391601 * Explicitly build-depend on the current version of linux-kernel-headers since older ones don't have IPV6_RECVHOPLIMIT. -- Joey Hess Sat, 14 Oct 2006 23:48:44 -0400 iputils (3:20020927-3) unstable; urgency=low * only requst AF_INET address in ping and tracepath, since these tools only deal with IPv4 addresses. (Closes: Bug#305062) * SO_TIMESTAMP is no longer broken on SPARC so its use is no longer disabled. (Closes: Bug#330909) * Report all valid ICMP response types in ping (Closes: Bug#186745) * Don't print out a bogus and broken statistics line upon exit if using -A and pinging an unresponsive host. (Closes: Bug#180903) * Provide a somewhat more descriptive warning if CONFIG_FILTER is not supported in the kernel. This shouldn't matter anymore, since it's always enabled on modern kernels. (Closes: Bug#139151) * Use debhelper compat level 4. * Move binaries to /usr/bin (Closes: Bug#141799) -- Noah Meyerhans Sat, 22 Oct 2005 10:54:50 -0400 iputils (3:20020927-2) unstable; urgency=low * Build system cleanup. Stop including anything from /usr/src/linux. We still define our own versions of things that should be included from /usr/src/sys, and this needs to be fixed, but I will wait until post sarge to do so. (Closes: Bug#223164) * Install symlink for tracepath6 man page. -- Noah Meyerhans Mon, 22 Dec 2003 15:26:54 -0500 iputils (3:20020927-1) unstable; urgency=medium * New upstream version. (Closes: Bug#151980) * Changed iputils-ping to Priority: important * Changed iputils-tracepath to Priority: optional * Added RELNOTES to /usr/share/doc/iputils-* as the upstream changelog. * Bumped standards version to 3.5.7.0 * Changed the sparc kludge (see prev. version's changes) to avoid using the SO_TIMESTAMP sockopt, since that seems to be where the problem is. -U is no longer forced. * Fixed '==' typo on line 444 of traceroute6.c. The patch has been sent upstream and will be in future releases. -- Noah Meyerhans Wed, 2 Oct 2002 23:49:21 -0400 iputils (3:20020124-3) unstable; urgency=medium * Added kludge to force -U on ping and ping6 on SPARC, since neither program will report correct times at all otherwise. This will be fixed correctly at some point in the future, but possibly not before woody's release. (Closes: Bug#122379) * Fixed a printf error in tracepath6.c that caused some slightly ugly (non zero-padded) output. (Closes: Bug#141300) * Fixed a typo in tracepath.8 (Closes: Bug#135274) * Removed reference to clockdiff(8) from arping.8 since clockdiff is not packaged. -- Noah Meyerhans Sun, 21 Apr 2002 02:07:55 -0400 iputils (3:20020124-2) unstable; urgency=low * Added newlines to network error indicators in ping6 (Closes: Bug#140254, Bug#119651) -- Noah Meyerhans Wed, 17 Apr 2002 00:32:03 -0400 iputils (3:20020124-1) unstable; urgency=low * New upstream release. (Closes: Bug#119651, Bug#120166) * Improved the build process. Uses new debhelper scripts. * Added new build deps for manpage auto-generation from SGML source. -- Noah Meyerhans Tue, 29 Jan 2002 16:32:58 -0500 iputils (3:0ss010824-1) unstable; urgency=low * New upstream release (Closes: Bug#113306) -- Noah Meyerhans Wed, 26 Sep 2001 17:09:51 -0400 iputils (20001110-7) unstable; urgency=low * Fixed the Conflicts line for iputils-arping. (Closes: Bug#100287) * Removed an obsolete call to dh_testversion in debian/rules -- Noah Meyerhans Wed, 13 Jun 2001 22:11:30 -0400 iputils (20001110-6) unstable; urgency=low * Split arping out into its own separate package (iputils-arping) * Made iputils-arping conflict with arping, another package which provided the arping binary (Closes: Bug#99295) * Bumped the package standards version up to 3.5.4.0 -- Noah Meyerhans Sun, 3 Jun 2001 14:21:35 -0400 iputils (20001110-5) unstable; urgency=low * Documented all previously undocumented programs. (Closes: Bug#43812) -- Noah Meyerhans Mon, 23 Apr 2001 16:06:58 -0400 iputils (20001110-4) unstable; urgency=low * New maintainer (Closes: Bug#84024) * Fixed a typo in the control file (2 Conflicts line, added in -3). (Closes: Bug#85115) * Created man pages for ping and ping6 based on netkit ping man pages. (Closes: Bug#74375, Bug#46876) -- Noah Meyerhans Tue, 6 Feb 2001 16:44:22 -0500 iputils (20001110-3) unstable; urgency=low * debian/rules: Removed call to dh_suidregister (closes: #84130, #84709). * debian/control: Added Conflict with suidmanager << 0.50 as mentioned in the dh_suidregister manpage. -- Torsten Landschoff Sun, 4 Feb 2001 00:33:52 +0100 iputils (20001110-2) unstable; urgency=low * ping6.c: Add #defines for those stupid clear_bit, test_bit, set_bit functions. -- Anthony Towns Mon, 29 Jan 2001 23:39:31 +1000 iputils (20001110-1) unstable; urgency=low * New upstream version. (Closes: Bug#80250, Bug#80251) * Removed most of the Debian patches: too much has changed upstream to reasonably forward port them. Maxwait argument thus disappeared. (Closes: Bug#65597) * Shouldn't have any security problems, theoretically. (Closes: Bug#69472) * Descriptions have been updated a while ago. (Closes: Bug#68973) * Orphaned, maintainer set to debian-qa. -- Anthony Towns Tue, 26 Dec 2000 15:03:20 +1000 iputils (990107-3) unstable; urgency=low * Got sick of the tiresome traceroute flame wars, and moved the tracepath, tracepath6 and traceroute6 binaries to /usr/sbin. -- Anthony Towns Wed, 16 Aug 2000 20:25:21 +1000 iputils (990107-2) unstable; urgency=low * Drop priority to extra (it conflicts: with a standard package so shouldn't be optional anway), and add a note to the description. -- Anthony Towns Sat, 12 Aug 2000 23:49:58 +1000 iputils (990107-1) unstable; urgency=low * Initial Release. -- Anthony Towns Sat, 5 Aug 2000 19:51:36 +1000 debian/iputils-ping.docs0000644000000000000000000000001112311005231012440 0ustar RELNOTES debian/docs0000644000000000000000000000002012311005231010015 0ustar README RELNOTES debian/files.iputils-arping0000644000000000000000000000005412311005231013144 0ustar usr/sbin/arping usr/share/man/man8/arping.8 debian/iputils-ping.manpages0000644000000000000000000000001312311005231013305 0ustar doc/ping.8 debian/copyright0000644000000000000000000001106012311005231011103 0ustar This package was debianized by Anthony Towns on Sat, 5 Aug 2000 19:51:36 +1000. It has been maintained for Debian by Noah Meyerhans since 6 Feb 2001. It was downloaded from ftp://ftp.inr.ac.ru/ip-routing/ Upstream Author: Alexey Kuznetsov Copyright: Some of the code in this package is: Copyright (c) 1989 The Regents of the University of California. All rights reserved. This code is derived from software contributed to Berkeley by Mike Muuss. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 4. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Comment: Delete the clause 3 (the advertising clause), as per announce by the University of California, Berkeley : July 22, 1999 . To All Licensees, Distributors of Any Version of BSD: . As you know, certain of the Berkeley Software Distribution ("BSD") source code files require that further distributions of products containing all or portions of the software, acknowledge within their advertising materials that such products contain software developed by UC Berkeley and its contributors. . Specifically, the provision reads: . " * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors." . Effective immediately, licensees and distributors are no longer required to include the acknowledgement within advertising materials. Accordingly, the foregoing paragraph of those BSD Unix files containing it is hereby deleted in its entirety. . William Hoskins Director, Office of Technology Licensing University of California, Berkeley Other parts are copyright Alexey Kuznetsov, and are distributed under the GNU General Public Licenses (version 2 or later), which is available in /usr/share/common-licenses/GPL. The rdisc program is distributed under the following terms: * Rdisc (this program) was developed by Sun Microsystems, Inc. and is * provided for unrestricted use provided that this legend is included on * all tape media and as a part of the software program in whole or part. * Users may copy or modify Rdisc without charge, and they may freely * distribute it. * * RDISC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. * * Rdisc is provided with no support and without any obligation on the * part of Sun Microsystems, Inc. to assist in its use, correction, * modification or enhancement. * * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY RDISC * OR ANY PART THEREOF. * * In no event will Sun Microsystems, Inc. be liable for any lost revenue * or profits or other special, indirect and consequential damages, even if * Sun has been advised of the possibility of such damages. * * Sun Microsystems, Inc. * 2550 Garcia Avenue * Mountain View, California 94043 debian/iputils-clockdiff.docs0000644000000000000000000000001112311005231013427 0ustar RELNOTES debian/iputils-doc.docs0000644000000000000000000000001012311005231012247 0ustar #DOCS# debian/compat0000644000000000000000000000000212311005231010350 0ustar 7 debian/iputils-tracepath.docs0000644000000000000000000000001112311005231013456 0ustar RELNOTES debian/files.iputils-tracepath0000644000000000000000000000013312311005231013635 0ustar usr/sbin/tracepath usr/sbin/tracepath6 usr/sbin/traceroute6 usr/share/man/man8/tracepath.8 debian/dirs.iputils-arping0000644000000000000000000000003312311005231013000 0ustar usr/bin usr/share/man/man8 debian/patches/0000755000000000000000000000000012311005232010602 5ustar debian/patches/set_buildflags0000644000000000000000000000317612311005231013522 0ustar Index: iputils/Makefile =================================================================== --- iputils.orig/Makefile 2013-05-14 23:50:41.032029459 -0700 +++ iputils/Makefile 2013-05-14 23:51:34.188293041 -0700 @@ -49,10 +49,11 @@ # ------------------------------------- # What a pity, all new gccs are buggy and -Werror does not work. Sigh. # CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -Werror -g -CCOPT=-fno-strict-aliasing -Wstrict-prototypes -Wall -g +CCOPT=-Wstrict-prototypes -Wall CCOPTOPT=-O3 GLIBCFIX=-D_GNU_SOURCE DEFINES= +CFLAGS=$(DEBIAN_CFLAGS) $(CCOPT) $(GLIBCFIX) $(DEFINES) LDLIB= FUNC_LIB = $(if $(filter static,$(1)),$(LDFLAG_STATIC) $(2) $(LDFLAG_DYNAMIC),$(2)) @@ -110,7 +111,7 @@ IPV6_TARGETS=tracepath6 traceroute6 ping6 TARGETS=$(IPV4_TARGETS) $(IPV6_TARGETS) -CFLAGS=$(CCOPTOPT) $(CCOPT) $(GLIBCFIX) $(DEFINES) +CFLAGS=$(DEBIAN_CFLAGS) $(CCOPTOPT) $(CCOPT) $(GLIBCFIX) $(DEFINES) LDLIBS=$(LDLIB) $(ADDLIB) UNAME_N:=$(shell uname -n) @@ -130,7 +131,7 @@ %.o: %.c $(COMPILE.c) $< $(DEF_$(patsubst %.o,%,$@)) -o $@ $(TARGETS): %: %.o - $(LINK.o) $^ $(LIB_$@) $(LDLIBS) -o $@ + $(LINK.o) $^ $(DEBIAN_LDFLAGS) $(LIB_$@) $(LDLIBS) -o $@ # ------------------------------------- # arping @@ -149,7 +150,7 @@ DEF_ping_common = $(DEF_CAP) $(DEF_IDN) DEF_ping = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS) LIB_ping = $(LIB_CAP) $(LIB_IDN) -DEF_ping6 = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS) $(DEF_ENABLE_PING6_RTHDR) +DEF_ping6 = $(DEF_CAP) $(DEF_IDN) $(DEF_WITHOUT_IFADDRS) $(DEF_ENABLE_PING6_RTHDR) $(DEF_CRYPTO) LIB_ping6 = $(LIB_CAP) $(LIB_IDN) $(LIB_RESOLV) $(LIB_CRYPTO) ping: ping_common.o debian/patches/bug698287-typo.patch0000644000000000000000000000103012311005231014072 0ustar Index: iputils/ping_common.c =================================================================== --- iputils.orig/ping_common.c 2013-12-08 13:41:08.705601168 -0800 +++ iputils/ping_common.c 2013-12-12 23:09:37.081472727 -0800 @@ -608,7 +608,7 @@ interval = 0; if (uid && interval < MINUSERINTERVAL) { - fprintf(stderr, "ping: cannot flood; minimal interval, allowed for user, is %dms\n", MINUSERINTERVAL); + fprintf(stderr, "ping: cannot flood; minimal interval allowed for user is %dms\n", MINUSERINTERVAL); exit(2); } debian/patches/fix-arping-timeouts.diff0000644000000000000000000000153512311005231015352 0ustar See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=233125 Index: iputils/arping.c =================================================================== --- iputils.orig/arping.c 2013-05-14 09:19:37.000000000 -0700 +++ iputils/arping.c 2013-05-14 09:26:54.314921159 -0700 @@ -348,15 +348,20 @@ tv_o.tv_sec = timeout; tv_o.tv_usec = 500 * 1000; - if (count-- == 0 || (timeout && timercmp(&tv_s, &tv_o, >))) + if (timeout && timercmp(&tv_s, &tv_o, >)) + finish(); + + if ((!timeout) && (count == 0)) finish(); timersub(&tv, &last, &tv_s); tv_o.tv_sec = 0; - if (last.tv_sec==0 || timercmp(&tv_s, &tv_o, >)) { + if (count!=0 && (last.tv_sec==0 || timercmp(&tv_s, &tv_o, >))) { send_pack(s, src, dst, (struct sockaddr_ll *)&me, (struct sockaddr_ll *)&he); + if(count >= 0) + count--; if (count == 0 && unsolicited) finish(); } debian/patches/bug109709-less-dns.patch0000644000000000000000000000235512311005232014625 0ustar Index: iputils/ping.c =================================================================== --- iputils.orig/ping.c 2013-12-29 23:23:02.000000000 -0800 +++ iputils/ping.c 2013-12-29 23:24:38.000000000 -0800 @@ -1243,7 +1243,13 @@ pr_addr(__u32 addr) { struct hostent *hp; - static char buf[4096]; + static char buf[4096] = ""; + static __u32 last_addr = 0; + + if (*buf && addr == last_addr) + return(buf); + + last_addr = addr; in_pr_addr = !setjmp(pr_addr_jmp); Index: iputils/ping6.c =================================================================== --- iputils.orig/ping6.c 2013-12-29 23:23:02.000000000 -0800 +++ iputils/ping6.c 2013-12-29 23:24:38.000000000 -0800 @@ -1794,8 +1794,9 @@ */ char * pr_addr(struct in6_addr *addr) { - struct hostent *hp = NULL; + static struct hostent *hp = NULL; static char *s; + static struct in6_addr last_addr; #ifdef USE_IDN free(s); @@ -1803,8 +1804,11 @@ in_pr_addr = !setjmp(pr_addr_jmp); - if (!(exiting || options&F_NUMERIC)) + if (!(hp && memcmp(addr, &last_addr, sizeof(struct in6_addr))) && + !(exiting || options&F_NUMERIC)) { hp = gethostbyaddr((__u8*)addr, sizeof(struct in6_addr), AF_INET6); + memcpy(&last_addr, addr, sizeof(struct in6_addr)); + } in_pr_addr = 0; debian/patches/targets.diff0000644000000000000000000000073512311005232013112 0ustar Index: iputils/Makefile =================================================================== --- iputils.orig/Makefile 2013-05-14 08:57:05.000000000 -0700 +++ iputils/Makefile 2013-05-14 09:11:54.686460217 -0700 @@ -106,7 +106,7 @@ endif # ------------------------------------- -IPV4_TARGETS=tracepath ping clockdiff rdisc arping tftpd rarpd +IPV4_TARGETS=tracepath ping clockdiff arping IPV6_TARGETS=tracepath6 traceroute6 ping6 TARGETS=$(IPV4_TARGETS) $(IPV6_TARGETS) debian/patches/upstream-tracepath-printf-cleanup.patch0000644000000000000000000000240012311005232020355 0ustar Cherry picked from upstream revision cec404067 Index: iputils/tracepath.c =================================================================== --- iputils.orig/tracepath.c 2013-12-08 13:51:38.928726279 -0800 +++ iputils/tracepath.c 2013-12-08 13:55:18.121813195 -0800 @@ -77,13 +77,10 @@ void print_host(const char *a, const char *b, int both) { - int plen = 0; - printf("%s", a); - plen = strlen(a); - if (both) { - printf(" (%s)", b); - plen += strlen(b) + 3; - } + int plen; + plen = printf("%s", a); + if (both) + plen += printf(" (%s)", b); if (plen >= HOST_COLUMN_SIZE) plen = HOST_COLUMN_SIZE - 1; printf("%*s", HOST_COLUMN_SIZE - plen, ""); Index: iputils/tracepath6.c =================================================================== --- iputils.orig/tracepath6.c 2013-12-08 13:51:38.928726279 -0800 +++ iputils/tracepath6.c 2013-12-08 13:55:18.121813195 -0800 @@ -90,13 +90,10 @@ void print_host(const char *a, const char *b, int both) { - int plen = 0; - printf("%s", a); - plen = strlen(a); - if (both) { - printf(" (%s)", b); - plen += strlen(b) + 3; - } + int plen; + plen = printf("%s", a); + if (both) + plen += printf(" (%s)", b); if (plen >= HOST_COLUMN_SIZE) plen = HOST_COLUMN_SIZE - 1; printf("%*s", HOST_COLUMN_SIZE - plen, ""); debian/patches/bug629075-tracepath_hops_back.patch0000644000000000000000000000331112311005232017055 0ustar Index: iputils/tracepath.c =================================================================== --- iputils.orig/tracepath.c 2013-12-12 23:27:43.390859508 -0800 +++ iputils/tracepath.c 2013-12-12 23:29:17.087323789 -0800 @@ -202,6 +202,13 @@ printf("(This broken router returned corrupted payload) "); } + if (rethops<=64) + rethops = 65-rethops; + else if (rethops<=128) + rethops = 129-rethops; + else + rethops = 256-rethops; + switch (e->ee_errno) { case ETIMEDOUT: printf("\n"); @@ -224,12 +231,6 @@ e->ee_type == 11 && e->ee_code == 0) { if (rethops>=0) { - if (rethops<=64) - rethops = 65-rethops; - else if (rethops<=128) - rethops = 129-rethops; - else - rethops = 256-rethops; if (sndhops>=0 && rethops != sndhops) printf("asymm %2d ", rethops); else if (sndhops<0 && rethops != ttl) Index: iputils/tracepath6.c =================================================================== --- iputils.orig/tracepath6.c 2013-12-12 23:27:43.390859508 -0800 +++ iputils/tracepath6.c 2013-12-12 23:32:15.216208181 -0800 @@ -261,6 +261,13 @@ printf("(This broken router returned corrupted payload) "); } + if (rethops<=64) + rethops = 65-rethops; + else if (rethops<=128) + rethops = 129-rethops; + else + rethops = 256-rethops; + switch (e->ee_errno) { case ETIMEDOUT: printf("\n"); @@ -286,12 +293,6 @@ e->ee_type == 3 && e->ee_code == 0)) { if (rethops>=0) { - if (rethops<=64) - rethops = 65-rethops; - else if (rethops<=128) - rethops = 129-rethops; - else - rethops = 256-rethops; if (sndhops>=0 && rethops != sndhops) printf("asymm %2d ", rethops); else if (sndhops<0 && rethops != ttl) debian/patches/fix-tracepath-docs.diff0000644000000000000000000000356312311005232015130 0ustar Index: iputils/doc/Makefile =================================================================== --- iputils.orig/doc/Makefile 2014-02-01 12:27:29.164716082 -0800 +++ iputils/doc/Makefile 2014-02-01 12:27:48.864813759 -0800 @@ -6,7 +6,7 @@ html: $(HTMLFILES) iputils.html -man: $(MANFILES) +man: $(MANFILES) fix_sgml2man # docbook scripts are incredibly dirty in the sense that they leak # lots of some strange temporary junk directories and files. @@ -33,6 +33,9 @@ @set -e; cd tmp.db2man; nsgmls ../$< | sgmlspl ../docbook2man-spec.pl ; mv $@ .. @-rm -rf tmp.db2man +fix_sgml2man: + @sed -i -e 's!\\fB\\fIdestination\\fB\\fR \[\\fB/\\fIport\\fB\\fR\]!\\fB\\fIdestination\\fB\\fR[\\fB/\\fIport\\fB\\fR]!g' tracepath.8 + clean: @rm -rf $(MANFILES) $(HTMLFILES) iputils.html tmp.db2html tmp.db2man Index: iputils/doc/tracepath.sgml =================================================================== --- iputils.orig/doc/tracepath.sgml 2014-02-01 12:27:28.508712829 -0800 +++ iputils/doc/tracepath.sgml 2014-02-01 12:29:16.509249249 -0800 @@ -46,21 +46,21 @@ - - - + + /term> + +Set maximum hops (or maximum TTLs) to + + Index: iputils/tracepath.c =================================================================== --- iputils.orig/tracepath.c 2014-02-01 12:56:44.709421358 -0800 +++ iputils/tracepath.c 2014-02-01 12:56:54.349469161 -0800 @@ -32,6 +32,9 @@ #define IP_PMTUDISC_PROBE 3 #endif +#define MAX_HOPS_LIMIT 255 +#define MAX_HOPS_DEFAULT 30 + struct hhistory { int hops; @@ -43,6 +46,7 @@ struct sockaddr_in target; __u16 base_port; +int max_hops = MAX_HOPS_DEFAULT; const int overhead = 28; int mtu = 65535; @@ -315,7 +319,7 @@ setlocale(LC_ALL, ""); #endif - while ((ch = getopt(argc, argv, "nbh?l:p:")) != EOF) { + while ((ch = getopt(argc, argv, "nbh?l:m:p:")) != EOF) { switch(ch) { case 'n': no_resolve = 1; @@ -330,6 +334,14 @@ exit(1); } break; + case 'm': + max_hops = atoi(optarg); + if (max_hops < 0 || max_hops > MAX_HOPS_LIMIT) { + fprintf(stderr, + "Error: max hops must be 0 .. %d (inclusive).\n", + MAX_HOPS_LIMIT); + } + break; case 'p': base_port = atoi(optarg); break; @@ -405,7 +417,7 @@ exit(1); } - for (ttl=1; ttl<32; ttl++) { + for (ttl = 1; ttl <= max_hops; ttl++) { int res; int i; Index: iputils/tracepath6.c =================================================================== --- iputils.orig/tracepath6.c 2014-02-01 12:49:14.311187959 -0800 +++ iputils/tracepath6.c 2014-02-01 12:56:54.349469161 -0800 @@ -42,6 +42,9 @@ #define IPV6_PMTUDISC_DO 3 #endif +#define MAX_HOPS_LIMIT 255 +#define MAX_HOPS_DEFAULT 30 + struct hhistory { int hops; @@ -55,6 +58,7 @@ struct sockaddr_storage target; socklen_t targetlen; __u16 base_port; +int max_hops = MAX_HOPS_DEFAULT; int overhead; int mtu; @@ -387,7 +391,7 @@ setlocale(LC_ALL, ""); #endif - while ((ch = getopt(argc, argv, "nbh?l:p:")) != EOF) { + while ((ch = getopt(argc, argv, "nbh?l:m:p:")) != EOF) { switch(ch) { case 'n': no_resolve = 1; @@ -398,6 +402,14 @@ case 'l': mtu = atoi(optarg); break; + case 'm': + max_hops = atoi(optarg); + if (max_hops < 0 || max_hops > MAX_HOPS_LIMIT) { + fprintf(stderr, + "Error: max hops must be 0 .. %d (inclusive).\n", + MAX_HOPS_LIMIT); + } + break; case 'p': base_port = atoi(optarg); break; @@ -523,7 +535,7 @@ exit(1); } - for (ttl=1; ttl<32; ttl++) { + for (ttl = 1; ttl <= max_hops; ttl++) { int res; int i; debian/patches/bug_628893_flush_stdout_on_truncated_packets0000644000000000000000000000232012311005232021224 0ustar Index: iputils/ping.c =================================================================== --- iputils.orig/ping.c 2013-05-14 09:30:55.344116453 -0700 +++ iputils/ping.c 2013-05-14 09:31:55.276413640 -0700 @@ -787,8 +787,10 @@ if (gather_statistics((__u8*)icp, sizeof(*icp), cc, ntohs(icp->un.echo.sequence), ip->ttl, 0, tv, pr_addr(from->sin_addr.s_addr), - pr_echo_reply)) + pr_echo_reply)) { + fflush(stdout); return 0; + } } else { /* We fall here when a redirect or source quench arrived. * Also this branch processes icmp errors, when IP_RECVERR Index: iputils/ping6.c =================================================================== --- iputils.orig/ping6.c 2013-05-14 09:30:55.344116453 -0700 +++ iputils/ping6.c 2013-05-14 09:31:55.276413640 -0700 @@ -1607,8 +1607,10 @@ if (gather_statistics((__u8*)icmph, sizeof(*icmph), cc, ntohs(icmph->icmp6_seq), hops, 0, tv, pr_addr(&from->sin6_addr), - pr_echo_reply)) + pr_echo_reply)) { + fflush(stdout); return 0; + } } else if (icmph->icmp6_type == ICMPV6_NI_REPLY) { struct ni_hdr *nih = (struct ni_hdr *)icmph; int seq = niquery_check_nonce(nih->ni_nonce); debian/patches/bug686944-quit_when_done.patch0000644000000000000000000000077612311005232016125 0ustar Index: iputils/arping.c =================================================================== --- iputils.orig/arping.c 2013-12-12 23:12:38.006369952 -0800 +++ iputils/arping.c 2013-12-12 23:15:11.727132557 -0800 @@ -476,7 +476,7 @@ brd_recv++; if (ah->ar_op == htons(ARPOP_REQUEST)) req_recv++; - if (quit_on_reply) + if (quit_on_reply || (count == 0 && received == sent)) finish(); if(!broadcast_only) { memcpy(((struct sockaddr_ll *)&he)->sll_addr, p, ((struct sockaddr_ll *)&me)->sll_halen); debian/patches/bug_601147_audible_flood0000644000000000000000000000221512311005232014774 0ustar Index: iputils/ping.c =================================================================== --- iputils.orig/ping.c 2013-05-14 09:19:40.720771172 -0700 +++ iputils/ping.c 2013-05-14 09:30:55.344116453 -0700 @@ -876,16 +876,16 @@ return 0; } + if (options & F_AUDIBLE) { + putchar('\a'); + if(options & F_FLOOD) + fflush(stdout); + } if (!(options & F_FLOOD)) { pr_options(buf + sizeof(struct iphdr), hlen); - if (options & F_AUDIBLE) - putchar('\a'); putchar('\n'); fflush(stdout); - } else { - putchar('\a'); - fflush(stdout); } return 0; } Index: iputils/ping6.c =================================================================== --- iputils.orig/ping6.c 2013-05-14 09:19:37.000000000 -0700 +++ iputils/ping6.c 2013-05-14 09:30:55.344116453 -0700 @@ -1667,14 +1667,14 @@ pr_icmph(icmph->icmp6_type, icmph->icmp6_code, ntohl(icmph->icmp6_mtu)); } + if (options & F_AUDIBLE) { + putchar('\a'); + if(options & F_FLOOD) + fflush(stdout); + } if (!(options & F_FLOOD)) { - if (options & F_AUDIBLE) - putchar('\a'); putchar('\n'); fflush(stdout); - } else { - putchar('\a'); - fflush(stdout); } return 0; } debian/patches/series0000644000000000000000000000057212311005231012022 0ustar use_gethostbyname2.diff targets.diff fix-tracepath-docs.diff fix-arping-timeouts.diff bug_601147_audible_flood bug_628893_flush_stdout_on_truncated_packets set_buildflags recverr_works_bug709052.patch upstream-max-hops.patch upstream-tracepath-printf-cleanup.patch bug109709-less-dns.patch bug698287-typo.patch bug686944-quit_when_done.patch bug629075-tracepath_hops_back.patch debian/patches/use_gethostbyname2.diff0000644000000000000000000000156112311005231015245 0ustar See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=305062 Index: iputils/ping.c =================================================================== --- iputils.orig/ping.c 2013-05-14 09:03:28.327949337 -0700 +++ iputils/ping.c 2013-05-14 09:05:38.508594892 -0700 @@ -279,7 +279,7 @@ #else idn = target; #endif - hp = gethostbyname(idn); + hp = gethostbyname2(idn, AF_INET); if (!hp) { fprintf(stderr, "ping: unknown host %s\n", target); exit(2); Index: iputils/tracepath.c =================================================================== --- iputils.orig/tracepath.c 2013-05-14 09:03:28.327949337 -0700 +++ iputils/tracepath.c 2013-05-14 09:06:00.100701918 -0700 @@ -370,9 +370,9 @@ } #endif - he = gethostbyname(p); + he = gethostbyname2(p, AF_INET); if (he == NULL) { - herror("gethostbyname"); + herror("gethostbyname2"); exit(1); } debian/dirs.iputils-tracepath0000644000000000000000000000003312311005231013473 0ustar usr/bin usr/share/man/man8 debian/iputils-tracepath.postinst0000644000000000000000000000140612311005231014422 0ustar #!/bin/sh set -e if [ "$1" = configure ]; then update-alternatives \ --install /usr/bin/traceroute6 traceroute6 /usr/bin/traceroute6.iputils 100 \ --slave /usr/share/man/man8/traceroute6.8.gz traceroute6.8.gz /usr/share/man/man8/traceroute6.iputils.8.gz if command -v setcap > /dev/null; then if setcap cap_net_raw+ep /usr/bin/traceroute6.iputils; then echo "Setcap worked! traceroute6 is not suid!" else echo "Setcap failed on /usr/bin/traceroute6.iputils, falling back to setuid" >&2 chmod u+s /usr/bin/traceroute6.iputils fi else echo "Setcap is not installed, falling back to setuid" >&2 chmod u+s /usr/bin/traceroute6.iputils fi fi #DEBHELPER# exit 0 # Local variables: # mode: shell-script # tab-width: 4 # indent-tabs-mode: nil # end: debian/dirs0000644000000000000000000000000012311005231010024 0ustar debian/iputils-tracepath.manpages0000644000000000000000000000004212311005231014325 0ustar doc/tracepath.8 doc/traceroute6.8 debian/rules0000755000000000000000000000606412311005231010240 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) export DEBIAN_CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) export LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) # This has to be exported to make some magic below work. export DH_OPTIONS DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) CROSS := else CROSS := CC=$(DEB_HOST_GNU_TYPE)-gcc endif configure: dh_testdir build-arch: configure dh_testdir $(MAKE) $(CROSS) build-indep: configure dh_testdir $(MAKE) -C doc man build: build-arch build-indep clean: dh_testdir dh_testroot $(MAKE) clean dh_clean install: DH_OPTIONS= install: build dh_testdir dh_testroot dh_prep dh_installdirs -piputils-tracepath usr/bin dh_installdirs -piputils-ping bin dh_installdirs -piputils-arping usr/bin dh_installdirs -piputils-clockdiff usr/bin install -m 4755 -o root -g root ping debian/iputils-ping/bin/ install -m 4755 -o root -g root ping6 debian/iputils-ping/bin/ install -m 4755 -o root -g root traceroute6 \ debian/iputils-tracepath/usr/bin/traceroute6.iputils install -m 0755 -o root -g root tracepath \ debian/iputils-tracepath/usr/bin/ install -m 0755 -o root -g root tracepath6 \ debian/iputils-tracepath/usr/bin/ install -m 0755 -o root -g root arping debian/iputils-arping/usr/bin/ install -m 0755 -o root -g root clockdiff \ debian/iputils-clockdiff/usr/bin/ # Build architecture-independent files here. # Pass -i to all debhelper commands in this target to reduce clutter. binary-indep: DH_OPTIONS= binary-indep: build install dh_testdir dh_testroot dh_installdocs dh_installexamples dh_installmenu dh_installchangelogs dh_link dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb # Build architecture-dependent files here. # Pass -a to all debhelper commands in this target to reduce clutter. binary-arch: DH_OPTIONS= binary-arch: build install dh_testdir dh_testroot dh_installdocs dh_installexamples dh_installmenu dh_lintian dh_installcron dh_installman -piputils-ping dh_installman -piputils-tracepath mv debian/iputils-tracepath/usr/share/man/man8/traceroute6.8 \ debian/iputils-tracepath/usr/share/man/man8/traceroute6.iputils.8 dh_installman -piputils-arping dh_installman -piputils-clockdiff dh_installchangelogs dh_strip dh_link dh_compress dh_fixperms chmod 755 debian/iputils-ping/bin/ping chmod 755 debian/iputils-ping/bin/ping6 chmod 755 debian/iputils-tracepath/usr/bin/traceroute6.iputils chmod 755 debian/iputils-arping/usr/bin/arping chmod 755 debian/iputils-clockdiff/usr/bin/clockdiff ln -sf ping.8.gz debian/iputils-ping/usr/share/man/man8/ping6.8.gz ln -sf tracepath.8.gz debian/iputils-tracepath/usr/share/man/man8/tracepath6.8.gz dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-arch # no binary-indep .PHONY: build configure clean binary-indep binary-arch binary install debian/iputils-ping.lintian-overrides0000644000000000000000000000007312311005231015156 0ustar iputils-ping binary: possible-gpl-code-linked-with-openssl debian/iputils-clockdiff.postinst0000644000000000000000000000101012273262100014371 0ustar #!/bin/sh set -e if [ "$1" = configure ]; then if command -v setcap > /dev/null; then if setcap cap_net_raw+ep /usr/bin/clockdiff; then echo "Setcap worked! clockdiff is not suid!" else echo "Setcap failed on /usr/bin/clockdiff, falling back to setuid" >&2 chmod u+s /usr/bin/clockdiff fi else echo "Setcap is not installed, falling back to setuid" >&2 chmod u+s /usr/bin/clockdiff fi fi #DEBHELPER# exit 0 # Local variables: # mode: shell-script # tab-width: 4 # indent-tabs-mode: nil # end: debian/iputils-arping.postinst0000644000000000000000000000131112311005231013722 0ustar #!/bin/sh set -e if [ "$1" = configure ]; then # If we have setcap is installed, try setting cap_net_raw+ep, # which allows us to install our binaries without the setuid # bit. if command -v setcap > /dev/null; then if setcap cap_net_raw+ep /usr/bin/arping; then echo "Setcap worked! arping is not suid!" else echo "Setcap failed on /usr/bin/arping, falling back to setuid" >&2 chmod u+s /usr/bin/arping fi else echo "Setcap is not installed, falling back to setuid" >&2 chmod u+s /usr/bin/arping fi fi #DEBHELPER# exit 0 # Local variables: # mode: shell-script # tab-width: 4 # indent-tabs-mode: nil # end: debian/source/0000755000000000000000000000000012311005232010453 5ustar debian/source/format0000644000000000000000000000001412311005232011661 0ustar 3.0 (quilt) debian/iputils-tracepath.prerm0000644000000000000000000000024712311005231013666 0ustar #!/bin/sh set -e if [ "$1" = remove ] || [ "$1" = deconfigure ]; then update-alternatives --remove traceroute6 /usr/bin/traceroute6.iputils fi #DEBHELPER# exit 0 debian/control0000644000000000000000000000413312327466242010602 0ustar Source: iputils Section: net Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Noah Meyerhans Standards-Version: 3.9.5 Build-Depends: debhelper (>= 7), sp, sgmlspl, docbook, libcap-dev, libgnutls-openssl-dev Vcs-Git: git://git.debian.org/collab-maint/iputils.git Vcs-Browser: http://git.debian.org/?p=collab-maint/iputils.git;a=summary Package: iputils-ping Architecture: any Provides: ping Priority: important Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: libcap2-bin Description: Tools to test the reachability of network hosts The ping command sends ICMP ECHO_REQUEST packets to a host in order to test if the host is reachable via the network. . This package includes a ping6 utility which supports IPv6 network connections. Package: iputils-tracepath Architecture: any Suggests: traceroute Priority: optional Depends: ${shlibs:Depends}, ${misc:Depends} Description: Tools to trace the network path to a remote host The tracepath utility is similar to the traceroute utility, but also attempts to discover the MTU of the path. . This package also includes tracepath6 and traceroute6 utilities, which may be used on IPv6 networks. Package: iputils-arping Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: libcap2-bin Conflicts: arping Description: Tool to send ICMP echo requests to an ARP address The arping command acts like the standard ping command except it pings a machine by its ARP address instead of its IP address. It is typically used to locate a machine if its hardware address is known but its IP address is unknown Package: iputils-clockdiff Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Measure the time difference between networked computers Clockdiff computes the difference between the time of the machine on which it is called and the time of other network-accessible machines. The time differences measured by clockdiff are obtained using a sequence of ICMP TSTAMP messages which are returned to the sender by the IP module in the remote machine. debian/iputils-arping.manpages0000644000000000000000000000001512311005231013632 0ustar doc/arping.8 debian/iputils-doc.files0000644000000000000000000000001012311005231012421 0ustar #DOCS# debian/iputils-ping.postinst0000644000000000000000000000146312332503111013412 0ustar #!/bin/sh set -e if [ "$1" = configure ]; then # If we have setcap is installed, try setting cap_net_raw+ep, # which allows us to install our binaries without the setuid # bit. # Don't use setcap for Ubuntu as tarballs don't properly store those # by default. LP: #1302192 if false; then if setcap cap_net_raw+ep /bin/ping cap_net_raw+ep /bin/ping6; then echo "Setcap worked! Ping(6) is not suid!" else echo "Setcap failed on /bin/ping, falling back to setuid" >&2 chmod u+s /bin/ping /bin/ping6 fi else echo "Setcap is not installed, falling back to setuid" >&2 chmod u+s /bin/ping /bin/ping6 fi fi #DEBHELPER# exit 0 # Local variables: # mode: shell-script # tab-width: 4 # indent-tabs-mode: nil # end: