debian/0000755000000000000000000000000012236076470007175 5ustar debian/rules0000755000000000000000000000057012236076216010255 0ustar #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_CFLAGS_MAINT_APPEND = -DNO_SYSTEM -Wall -DUSE_GETNAMEINFO=1 -DUSE_GETIFADDRS=1 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs %: dh $@ --parallel --with autoreconf override_dh_auto_install: dh_auto_install -- DESTDIR=$(CURDIR)/debian/iftop override_dh_strip: dh_strip --dbg-package=iftop-dbg debian/patches/0000755000000000000000000000000012236076216010622 5ustar debian/patches/memory-leak.patch0000644000000000000000000000247112236076216014071 0ustar From: Olivier Allard-Jacquin Date: Fri, 18 Oct 2013 23:39:00 +0200 Subject: memory leak Fix a memory leak in resolver.c. The struct addr_storage was allocated but never freed if dns resolution was turned off. Thanks to Olivier Allard-Jacquin for the report and patch. Bug: http://bugs.debian.org/677141 --- resolver.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/resolver.c b/resolver.c index c09de9d..e3b965d 100644 --- a/resolver.c +++ b/resolver.c @@ -472,15 +472,15 @@ void resolve(int af, void* addr, char* result, int buflen) { int added = 0; struct addr_storage *raddr; - raddr = malloc(sizeof *raddr); - memset(raddr, 0, sizeof *raddr); - raddr->af = af; - raddr->len = (af == AF_INET ? sizeof(struct in_addr) - : sizeof(struct in6_addr)); - memcpy(&raddr->addr, addr, raddr->len); - if(options.dnsresolution == 1) { + raddr = malloc(sizeof *raddr); + memset(raddr, 0, sizeof *raddr); + raddr->af = af; + raddr->len = (af == AF_INET ? sizeof(struct in_addr) + : sizeof(struct in6_addr)); + memcpy(&raddr->addr, addr, raddr->len); + pthread_mutex_lock(&resolver_queue_mutex); if(hash_find(ns_hash, raddr, u_hostname.void_pp) == HASH_STATUS_OK) { debian/patches/series0000644000000000000000000000004112236076216012032 0ustar memory-leak.patch man-page.patch debian/patches/man-page.patch0000644000000000000000000000240212236076216013326 0ustar From: Markus Koschany Date: Sun, 20 Oct 2013 21:27:32 +0200 Subject: man page --- iftop.8 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/iftop.8 b/iftop.8 index 860b785..26d691e 100644 --- a/iftop.8 +++ b/iftop.8 @@ -31,7 +31,7 @@ By default, \fBiftop\fP counts all IP packets that pass through the filter, and the direction of the packet is determined according to the direction the packet is moving across the interface. Using the \fB-F\fP option it is possible to get \fBiftop\fP to show packets entering and leaving a given network. For -example, \fBiftop -F 10.0.0.0/255.0.0.0\fP will analyse packets flowing in and +example, \fBiftop \-F 10.0.0.0/255.0.0.0\fP will analyse packets flowing in and out of the 10.* network. Some other filter ideas: @@ -113,7 +113,6 @@ instance, foo.example.com => bar.example.com 1Kb 500b 100b <= 2Mb 2Mb 2Mb -.Sp .fi shows, on the first line, traffic from \fBfoo.example.com\fP to \fBbar.example.com\fP; in the preceding 2 seconds, this averaged 1Kbit/s, @@ -196,7 +195,6 @@ directive is a name value pair, for example: interface: eth0 -.Sp .fi sets the network interface. The following config directives are supported: debian/iftop.docs0000644000000000000000000000000512230643214011151 0ustar TODO debian/compat0000644000000000000000000000000212230643214010361 0ustar 9 debian/copyright0000644000000000000000000001125212236076216011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: iftop Source: http://www.ex-parrot.com/~pdw/iftop/download Files: * Copyright: 2002-2011, Paul Warren 2002-2011, Chris Lightfoot License: GPL-2+ Files: token.h Copyright: 1998, Larry Lile License: BSD-2-clause Files: tcp.h ip.h sll.h Copyright: 1982, 1986, 1993, The Regents of the University of California License: BSD-3-clause Comment: The original license was BSD-4-clause. But since the copyright holder is the University of California it is permitted to delete the fourth non-free paragraph in its entirety. See also: ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Files: debian/* Copyright: 2002-2004, christophe barbe 2005-2009, Daniel Baumann 2009-2013, Alexander Reichle-Schmehl 2013, Markus Koschany License: GPL-2+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. License: BSD-2-clause Copyright (c) 1998, Larry Lile All rights reserved. . 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 unmodified, 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. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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. License: BSD-3-clause Copyright (c) 1982, 1986, 1993 The Regents of the University of California. All rights reserved. . 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. 3. 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. debian/changelog0000644000000000000000000003003512236076216011046 0ustar iftop (1.0~pre2-5) unstable; urgency=low * [76d626d] Drop NEWS file. It is obsolete. * [fdf86bf] Drop README.source. - Source format 3.0 uses quilt by default. * [e2651cf] Fix watch file and detect the latest upstream release. * [2f7ea27] Build with --parallel and autoreconf instead of autotools-dev to recreate the whole build system at build time and to ensure that iftop can be built twice in a row. Thanks to Graham Inggs for the report. (Closes: #681560) * [92cec5f] Update debian/copyright to copyright format 1.0. - Add missing BSD licenses. * [e8e73e0] Add man-page.patch. - Fix errors in man page and lintian warning hyphen-used-as-minus-sign. * Bump Standards-Version to 3.9.5, no changes. -- Markus Koschany Thu, 31 Oct 2013 20:00:59 +0100 iftop (1.0~pre2-4) unstable; urgency=low * [488690e] New Maintainer. (Closes: #726549) * [06096f6] Add memory-leak.patch. - Fix a memory leak in resolver.c. The struct addr_storage was allocated but never freed if dns resolution was turned off. Thanks to Olivier Allard-Jacquin for the report and patch. (Closes: #677141) * [ab3dd6a] Update VCS-fields. - Move packaging to Git repository at collab-maint. * [580ac7d] Require debhelper >= 9 for compat level 9. (Closes: #693754) * [b881f79] Switch to source format 3.0 (quilt). * [66bb584] Bump Standards-Version to 3.9.4, no changes. -- Markus Koschany Sat, 19 Oct 2013 11:26:10 +0200 iftop (1.0~pre2-3) unstable; urgency=low * Enable hardening buildflags in debian/rules (Closes: #675849) -- Alexander Reichle-Schmehl Tue, 22 May 2012 16:35:48 +0200 iftop (1.0~pre2-2) unstable; urgency=low * Bump standards to 3.9.3 (no changes needed) * Upload to unstable -- Alexander Reichle-Schmehl Tue, 22 May 2012 14:37:21 +0200 iftop (0.17-19) unstable; urgency=low * Add debian/patches/12-allow-iface-with-emtpy-mac.patch which fixes a segfault when called upon interfaces with emtpy MAC address (Closes: #609540) -- Alexander Reichle-Schmehl Tue, 13 Dec 2011 16:05:19 +0100 iftop (1.0~pre2-1) experimental; urgency=low * New Upstream release * Drop patches/01-manpage.patch (applied upstream) * Drop patches/02-armeb.patch (applied upstream) * Drop patches/03-frozen-order.patch (applied upstream) * Drop patches/04-arm.patch (applied upstream) * Drop patches/05-bar-display.patch (applied upstream) * Drop patches/06-bar-bytes.patch (applied upstream) * Drop patches/07-spelling-and-usage-text.patch (applied upstream) * Drop patches/08-segfault-duplicate-options.patch (applied upstream) * Drop patches/09-incomplete-hash-func.patch (applied upstream) * Drop patches/10-lladdr-inclusion-kfreebsd.patch (applied upstream) * Drop patches/11-implement-ipv6-support.patch (applied upstream) * Fix package synopsis in --help (Closes: #439356) * Deactivate quilt in debian/rules as no patches are left * Fix usage of newer /usr/share/misc/config.{guess,sub} in debian/rules (Closes: #535735) -- Alexander Reichle-Schmehl Mon, 17 Oct 2011 16:05:33 +0200 iftop (0.17-18) unstable; urgency=low * Sepperate the changes from the previous upload into sepperate patches * debian/patches/07-spelling-and-usage-text.patch * debian/patches/08-segfault-duplicate-options.patch * debian/patches/09-incomplete-hash-func.patch * debian/patches/10-lladdr-inclusion-kfreebsd.patch * debian/patches/11-implement-ipv6-support.patch * Thanks again to Mats Erik Andersson for the work! * Deactivate the (unexpected) subshell feature by building with -DNO_SYSTEM * Fix Vcs-Svn header in debian/control * Fix typo of "feauture" in debian/NEWS * Bump standards (No changes needed) -- Alexander Reichle-Schmehl Mon, 17 Oct 2011 12:59:13 +0200 iftop (0.17-17) experimental; urgency=low * Use versioned build depends on quilt to allow easy backporting * Add IPv6 support (Closes: #427852) * Fix segfault when using the same command line argument multiple time (Closes: #425488) * Fix typo in display (Closes: #477928) * Use better hash Algorithm in address pairs (Closes: #595169) * Fix link-level address detection on kfreebsd-* (Closes: #598367) * Many thanks for Mats Erik Andersson for working on these issues! -- Alexander Reichle-Schmehl Fri, 15 Oct 2010 11:30:59 +0200 iftop (0.17-16) unstable; urgency=low * Adopt package (Closes: #543874) * Add README.source * Bump build-depends on debhelper, since we use override targets * Fix another typo in iftop.8 -- Alexander Reichle-Schmehl Mon, 18 Jan 2010 23:35:24 +0100 iftop (0.17-15) unstable; urgency=low * Updating package to standards version 3.8.3. * Removing vcs fields. * Orphaning package. -- Daniel Baumann Thu, 27 Aug 2009 09:47:18 +0200 iftop (0.17-14) unstable; urgency=low * Removing accidentally imported (useless) removal of po files in clean. * Avoid empty packages because dh tries to be extra clever wrt/ destdir. -- Daniel Baumann Wed, 29 Jul 2009 23:47:10 +0200 iftop (0.17-13) unstable; urgency=low * Minimizing rules file. * Wrapping patch descriptions to 80 characters a line. -- Daniel Baumann Wed, 29 Jul 2009 23:19:11 +0200 iftop (0.17-12) unstable; urgency=low * Updating package to standards version 3.8.2. * Updating manpage patch to also remove unknown sequences. * Adding misc depends to the debug package. -- Daniel Baumann Mon, 27 Jul 2009 13:20:53 +0200 iftop (0.17-11) unstable; urgency=low * Updating rules to current state of the art. * Upgrading package to standards 3.8.1. * Updating section for debug packages. * Using correct rfc-2822 date formats in changelog. -- Daniel Baumann Mon, 04 May 2009 11:42:02 +0200 iftop (0.17-10) unstable; urgency=low * Applying patch from Marcin Kryczek to make displaying of top bar and screen consistent regarding bits and bytes mode (Closes: #513243). * Adding note in manpage about always using bits when specifying max- bandwith, regardless if the option to display in bytes was choosen, thanks to Nathan Stratton Treadway . -- Daniel Baumann Tue, 27 Jan 2009 17:51:00 +0100 iftop (0.17-9) unstable; urgency=low * Reordering compiler flags in configure call. * Correcting indenting in copyright file. * Updatingto debhelper 7. * Updating to standards 3.8.0. * Updating vcs fields in control file. * Using patch-stamp rather than patch in rules file. * Replacing obsolete dh_clean -k with dh_prep. * Prefixing debhelper files with package name. * Using quilt rather than dpatch. * Updating year in copyright file. * Updating rules to current state of the art. * Updating manpage patch in order to fix yet another typo in the manpage, thanks to Serafeim Zanikolas (Closes: #512886). * Sorting build-depends. -- Daniel Baumann Sun, 25 Jan 2009 00:05:00 +0100 iftop (0.17-8) unstable; urgency=low * Adding debug package. -- Daniel Baumann Wed, 16 Apr 2008 13:52:00 +0200 iftop (0.17-7) unstable; urgency=low * Reordering rules file. * Removing config.guess and config.sub from debian branch. * Removing watch file. * Removing useless REAMDE from docs file. * Rewriting copyright file in machine-interpretable format. * Adding vcs fields in control file. * Updating package to debhelper 6. * Removing useless whitespaces in changelog file. -- Daniel Baumann Wed, 16 Apr 2008 13:39:00 +0200 iftop (0.17-6) unstable; urgency=low * Bumped policy version. * Using new homepage field in control. * Don't hide make errors in clean target of rules. -- Daniel Baumann Sun, 23 Dec 2007 15:55:00 +0100 iftop (0.17-5) unstable; urgency=low * Applied patch from Eric Cooper to fix -b option (Closes: #445991). -- Daniel Baumann Tue, 09 Oct 2007 21:19:00 +0200 iftop (0.17-4) unstable; urgency=low * Minor cleanups. * Bumped package to debhelper 5. -- Daniel Baumann Tue, 01 May 2007 13:45:00 +0200 iftop (0.17-3) unstable; urgency=low * Updated build-depends, moving libpcap-dev to libpcap0.8-dev (Closes: #386904). -- Daniel Baumann Mon, 11 Sep 2006 09:09:00 +0200 iftop (0.17-2) unstable; urgency=low * New email address. * Bumped policy version. -- Daniel Baumann Thu, 06 Jul 2006 08:48:00 +0200 iftop (0.17-1) unstable; urgency=low * New upstream release. * Fixed manpage typos (Closes: #360205). -- Daniel Baumann Sat, 22 Apr 2006 17:04:00 +0100 iftop (0.16-5) unstable; urgency=low * Added patch to fix crash on arm (Closes: #351293). -- Daniel Baumann Sat, 04 Feb 2006 12:13:00 +0100 iftop (0.16-4) unstable; urgency=low * Added patch to fix drives line going crazy if order is frozen (Closes: #315734). -- Daniel Baumann Mon, 05 Dec 2005 23:07:00 +0100 iftop (0.16-3) unstable; urgency=low * Added patch to fix armeb specific bug of structure size (Closes: #336212). -- Daniel Baumann Thu, 03 Nov 2005 22:45:00 +0200 iftop (0.16-2) unstable; urgency=low * New maintainer (Closes: #335917). * Redone debian/ based on new debhelper templates: - added watch file. - bumped to new policy. - config.{guess,sub} are now updated via diff.gz (Closes: #333825). - added patch to fix manpage and usage string for -N and -F options (Closes: #335203). -- Daniel Baumann Wed, 26 Oct 2005 23:08:00 +0200 iftop (0.16-1) unstable; urgency=low * New upstream release. -- christophe barbe Tue, 06 Apr 2004 20:37:45 -0400 iftop (0.15-2) unstable; urgency=low * Fix -N and -n options (Closes: #228643) Thanks to Klaus Sperner . -- christophe barbe Mon, 19 Jan 2004 21:03:05 -0500 iftop (0.15-1) unstable; urgency=low * New upstream release. -- christophe barbe Sat, 15 Nov 2003 14:43:29 -0500 iftop (0.13-1) unstable; urgency=low * New upstream. * iftop moved in /usr/sbin (Closes: #185285). -- christophe barbe Fri, 25 Jul 2003 17:32:38 -0400 iftop (0.11-2) unstable; urgency=low * Move DH_COMPAT in debian/compat. * Bump Standards-Version up to 3.5.9. -- christophe barbe Thu, 03 Apr 2003 20:41:17 -0500 iftop (0.11-1) unstable; urgency=low * New upstream. * Authors took into account some Flawfinder reports (Closes: #168542). -- christophe barbe Sun, 12 Jan 2003 18:31:04 -0500 iftop (0.10-1) unstable; urgency=low * New Upstream. -- christophe barbe Tue, 29 Oct 2002 18:35:13 -0500 iftop (0.9-1) unstable; urgency=low * New Upstream (closes: #166036). -- christophe barbe Wed, 23 Oct 2002 09:25:10 -0400 iftop (0.7-1) unstable; urgency=low * New buildable upstream release (unlike 0.6). -- christophe barbe Thu, 29 Aug 2002 13:35:15 -0400 iftop (0.5-1) unstable; urgency=low * New Upstream release. * Exit nicely when running as non-root (Closes: #157168). * Better interface selection (Closes: #157176). -- christophe barbe Mon, 26 Aug 2002 15:54:14 -0400 iftop (0.4-2) unstable; urgency=low * Rebuilt with new libpcap to remove dependency on libpcap0, which I got removed from unstable by accident. (closes: #156217). -- christophe barbe Sun, 11 Aug 2002 16:27:00 -0400 iftop (0.4-1) unstable; urgency=low * Initial Release (closes: #151413). -- christophe barbe Sat, 29 Jun 2002 17:43:41 -0400 debian/control0000644000000000000000000000241212236076216010575 0ustar Source: iftop Section: net Priority: optional Maintainer: Markus Koschany Build-Depends: debhelper (>= 9), dh-autoreconf, libncurses5-dev, libpcap0.8-dev Standards-Version: 3.9.5 Homepage: http://www.ex-parrot.com/~pdw/iftop/ Vcs-Git: git://anonscm.debian.org/collab-maint/iftop.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/iftop.git Package: iftop Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: displays bandwidth usage information on an network interface iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. Handy for answering the question "Why is my Internet link so slow?". Package: iftop-dbg Section: debug Priority: extra Architecture: any Depends: iftop (= ${binary:Version}), ${misc:Depends} Description: displays bandwidth usage information on an network interface (debug) iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. Handy for answering the question "Why is my Internet link so slow?". . This package contains the debugging symbols. debian/watch0000644000000000000000000000035712236076216010231 0ustar version=3 opts=uversionmangle=s/(\d)[\.\-]?((rc|pre|dev|beta|alpha|b|a)\d*)$/$1~$2/,dversionmangle=s/\+(dfsg|debian|ds|repack|repacked)// \ http://www.ex-parrot.com/~pdw/iftop/download/?M0D \ iftop-(\d.*)\.(?:tgz|tbz2|tar\.(?:gz|bz2|xz)) debian/source/0000755000000000000000000000000012236076216010473 5ustar debian/source/format0000644000000000000000000000001412236076216011701 0ustar 3.0 (quilt)