debian/0000755000000000000000000000000012332525107007166 5ustar debian/iputils-clockdiff.manpages0000644000000000000000000000002012252536545014317 0ustar doc/clockdiff.8 debian/iputils-doc.docs0000644000000000000000000000001012252536545012274 0ustar #DOCS# debian/iputils-tracepath.manpages0000644000000000000000000000004212252536545014352 0ustar doc/tracepath.8 doc/traceroute6.8 debian/iputils-arping.manpages0000644000000000000000000000001512252536545013657 0ustar doc/arping.8 debian/files.iputils-tracepath0000644000000000000000000000013312252536545013662 0ustar usr/sbin/tracepath usr/sbin/tracepath6 usr/sbin/traceroute6 usr/share/man/man8/tracepath.8 debian/dirs.iputils-arping0000644000000000000000000000003312252536545013025 0ustar usr/bin usr/share/man/man8 debian/rules0000755000000000000000000000607112263530674010262 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 4755 debian/iputils-ping/bin/ping chmod 4755 debian/iputils-ping/bin/ping6 chmod 4755 debian/iputils-tracepath/usr/bin/traceroute6.iputils chmod 4755 debian/iputils-arping/usr/bin/arping chmod 4755 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-tracepath.docs0000644000000000000000000000001112252536545013503 0ustar RELNOTES debian/iputils-tracepath.prerm0000644000000000000000000000024712252536545013713 0ustar #!/bin/sh set -e if [ "$1" = remove ] || [ "$1" = deconfigure ]; then update-alternatives --remove traceroute6 /usr/bin/traceroute6.iputils fi #DEBHELPER# exit 0 debian/iputils-doc.files0000644000000000000000000000001012252536545012446 0ustar #DOCS# debian/iputils-clockdiff.docs0000644000000000000000000000001112252536545013454 0ustar RELNOTES debian/iputils-arping.docs0000644000000000000000000000001112252536545013010 0ustar RELNOTES debian/copyright0000644000000000000000000001106012252536545011130 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-tracepath.postinst0000644000000000000000000000043512252536545014450 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 fi #DEBHELPER# exit 0 debian/docs0000644000000000000000000000002012252536545010042 0ustar README RELNOTES debian/files.iputils-arping0000644000000000000000000000005412252536545013171 0ustar usr/sbin/arping usr/share/man/man8/arping.8 debian/iputils-ping.lintian-overrides0000644000000000000000000000007312252536545015203 0ustar iputils-ping binary: possible-gpl-code-linked-with-openssl debian/source/0000755000000000000000000000000012252536545010477 5ustar debian/source/format0000644000000000000000000000001412252536545011705 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012252536545010626 5ustar debian/patches/use_gethostbyname2.diff0000644000000000000000000000156112252536545015272 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/patches/bug686944-quit_when_done.patch0000644000000000000000000000077612252536545016151 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_flood0000644000000000000000000000221512252536545015020 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/fix-tracepath-docs.diff0000644000000000000000000000146012252536545015146 0ustar Index: iputils/doc/Makefile =================================================================== --- iputils.orig/doc/Makefile 2007-10-28 17:27:31.000000000 -0400 +++ iputils/doc/Makefile 2007-12-09 21:01:24.000000000 -0500 @@ -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 debian/patches/set_buildflags0000644000000000000000000000317612252536545013547 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/recverr_works_bug709052.patch0000644000000000000000000000253612252536545016076 0ustar Remove buggy working_recverr checks per bug#709052 Index: iputils/ping.c =================================================================== --- iputils.orig/ping.c 2013-12-08 13:41:47.077791445 -0800 +++ iputils/ping.c 2013-12-08 13:43:25.238278205 -0800 @@ -654,17 +654,6 @@ acknowledge(ntohs(icmph.un.echo.sequence)); - if (!working_recverr) { - struct icmp_filter filt; - working_recverr = 1; - /* OK, it works. Add stronger filter. */ - filt.data = ~((1<type != ICMP_SOURCE_QUENCH); if (error_pkt) { acknowledge(ntohs(icp1->un.echo.sequence)); - if (working_recverr) { - return 0; - } else { - static int once; - /* Sigh, IP_RECVERR for raw socket - * was broken until 2.4.9. So, we ignore - * the first error and warn on the second. - */ - if (once++ == 1) - fprintf(stderr, "\rWARNING: kernel is not very fresh, upgrade is recommended.\n"); - if (once == 1) - return 0; - } + return 0; } nerrors+=error_pkt; if (options&F_QUIET) debian/patches/bug698287-typo.patch0000644000000000000000000000103012252536545014117 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/bug_628893_flush_stdout_on_truncated_packets0000644000000000000000000000232012252536545021250 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/upstream-max-hops.patch0000644000000000000000000000632612252536545015250 0ustar Cherry-picked from upstream revision 608419a7 Index: iputils/doc/tracepath.sgml =================================================================== --- iputils.orig/doc/tracepath.sgml 2013-12-08 13:41:08.701601142 -0800 +++ iputils/doc/tracepath.sgml 2013-12-08 13:51:38.924726241 -0800 @@ -18,6 +18,7 @@ -n -b -l +-m -p @@ -67,6 +68,14 @@ + + +