Commit Graph

283 Commits

Author SHA1 Message Date
Paul Warren 53e1150f66 Support for unlimited number of lines of output in text mode - Roman Hoog Antink <rha@open.ch> 2017-01-05 21:23:57 +00:00
Paul Warren 3fae1acf14 Fix handling of packets that are too short to be valid - Frédéric Perrin <fperrin@brocade.com>
When packets that are too short to be valid IP packets happen to start
with 0x45 or 0x60, iftop will still try to read source and destination
addresses, which will usually just be random garbage.

Note the assumption about what libpcap guarantees in the comments to
handle_ip_packet():

    * It is assumed that the snaplen (currently hard-coded to 1000) is
    * big enough to always capture the IP header past the L2 encap, and
    * that pcap never truncates the packet to less than snaplen; in
    * other words, that pcaphdr->caplen = MIN(pcaphdr->len, snaplen).
2017-01-05 21:16:43 +00:00
Paul Warren 9addd978c4 Option to display packet counts - Frédéric Perrin <fperrin@brocade.com>
Add a "-u unit" CLI option, as well as a "bandwidth-unit" configuration
file option. With "-u packets", traffic is accounted using packets per
second; the other options are "-u bits" and "-u bytes".

"-B" is still recognized as synonym to "-u bytes".

The default is "-u bits", keeping the current behaviour of iftop
(everything is in bits/s, except the cumulative totals).
2017-01-04 23:03:34 +00:00
Paul Warren eb087b0c83 Fix compilation warning from Frédéric Perrin <fperrin@brocade.com> 2017-01-04 23:00:12 +00:00
Paul Warren 839800b6e0 Fixes for compilation warnings, reported by David Binderman <dcb314@hotmail.com> 2017-01-04 22:58:24 +00:00
Paul Warren 96a691484e Fix mac address display
iftop would display portions of mac address with large ffffff prefixes.
Make if_hw_addr type consistent.  Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
2017-01-04 22:55:26 +00:00
Paul Warren 014c6e628f Remove pre-release warning. 2017-01-03 22:08:49 +00:00
Paul Warren 3a4a63c3e9 Update changelog 2017-01-03 21:55:24 +00:00
Paul Warren bc66e31834 Clean up libpcap on exit - Brian Russell <brussell@brocade.com>
On exit, call pcap_close() so that any resources used internally
by libpcap can be cleaned up.

http://lists.beasts.org/pipermail/iftop-users/2016-September/000455.html
2017-01-03 21:53:09 +00:00
Paul Warren 5340a3b9af Missing header file. 2017-01-03 21:50:49 +00:00
Paul Warren 2866de1379 Fix typo. 2017-01-03 21:42:37 +00:00
Paul Warren 25c75c0a74 Delete known issues related to very old distributions from README. 2017-01-03 21:41:44 +00:00
ddf dc26689ad5 Test commit. 2014-03-31 07:03:12 +00:00
ddf ce00762015 Missing file from CVS. 2014-01-19 21:56:29 +00:00
ddf 23c18303e5 Updated ChangeLog 2014-01-19 20:32:50 +00:00
ddf ceabf7a47a Fixed various compilation issues. 2014-01-19 20:28:31 +00:00
ddf 687861284d Patches from Robert Scheck <robert@fedoraproject.org>
* enable building iftop with more recent versions of autoconf/automake
* patch to remove compile time warnings (mostly already applied).
2014-01-19 20:11:39 +00:00
ddf 40add9566d Fixing warnings. 2014-01-05 20:04:12 +00:00
ddf 836733ba14 Fixes for a bunch of compiler warnings. 2014-01-05 20:02:51 +00:00
ddf a7b8639fc9 Man page documentation of -t mode.
Compile time warning fixes.
Markus Koschany <apo@gambaru.de>
2014-01-05 17:22:39 +00:00
ddf e81c0d8aae Fix to avoid system call in text mode wherever possible.
Robert Scheck <robert@fedoraproject.org>
2014-01-02 09:28:57 +00:00
ddf ff057367f7 update authors file, change version to 1.0pre3 2014-01-01 17:42:40 +00:00
ddf 4995ff52f5 Updated change log. 2014-01-01 15:49:53 +00:00
ddf 6d384fc12d Portability fixes from Mats Erik Andersson <debian@gisladisker.se>
It restores compilability and most functionality for

   GNU/Linux,
   GNU/kFreeBSD,
   FreeBSD,
   OpenBSD,
   OpenSolaris/NexentaCore.
2014-01-01 15:22:48 +00:00
ddf 975b775fd0 Update to licensing text. Patch by Robert Scheck <robert@fedoraproject.org> 2014-01-01 14:50:05 +00:00
ddf 4e296cc794 Patch to remove blinking cursor (unclear what platforms this affects)
Gerrit Renker <renker@ualberta.ca>
2014-01-01 14:46:30 +00:00
ddf a5557a1bcf Treat multicast packets as incoming, rather than incoming (IPv4) or not at all
(IPv6).  Patch by Andreas Schwab <schwab@linux-m68k.org>
2014-01-01 14:40:44 +00:00
ddf a966319256 Patch for text output mode by originally by Patrik Bless, updated by Roman Hoog
Antink <rha@open.ch>
2014-01-01 14:37:31 +00:00
ddf 59cf360690 Code tidying. 2014-01-01 12:36:35 +00:00
ddf 9be050ef4c Minor fixes to man page from Markus Koschany <apo@gambaru.de> 2014-01-01 12:36:22 +00:00
ddf b13d71d5a2 Patch by Robert Scheck <robert@fedoraproject.org> for iftop <= 1.0pre2 to avoid an
assertion failure if an "invalid" (as in outside of IPv4 or IPv6) address family is
passed to nss-myhostname's gethostbyaddr_r(). For further information please have a
look to Red Hat Bugzilla IDs #839750, #847124, #868065, #961236 and #1007434:

 - https://bugzilla.redhat.com/show_bug.cgi?id=839750
 - https://bugzilla.redhat.com/show_bug.cgi?id=847124
 - https://bugzilla.redhat.com/show_bug.cgi?id=868065
 - https://bugzilla.redhat.com/show_bug.cgi?id=961236
 - https://bugzilla.redhat.com/show_bug.cgi?id=1007434
2014-01-01 12:01:57 +00:00
ddf 029625219b Fix for memory leak when DNS resolution is turned off.
Patch by Olivier Allard-Jacquin <olivieraj@free.fr>
Debian bug ID #677141: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677141
2014-01-01 12:01:21 +00:00
ddf ddba335721 Added missing docs for -m option.
Noticed by Toralf Förster <toralf.foerster@gmx.de>
2014-01-01 11:54:06 +00:00
ddf 940bdcca64 Put IPv6 address in square brackets if showing port number. 2013-11-19 11:11:10 +00:00
ddf af3ed6ff48 Fixed typo in changelog, and error in application of i/f autodetection patch. 2011-10-04 20:40:34 +00:00
ddf 09f3d33527 Updated changelog. 2011-10-04 18:55:35 +00:00
ddf 8f1b75eda0 Attempt to detect if interface is actually up when doing autodetection. 2011-10-04 18:45:54 +00:00
ddf 093c15f72f Increased capture length and adjusted 802.11 header length for radiotap
support.
2011-10-04 18:30:59 +00:00
ddf ac177644c3 Patch by Robert Scheck <robert@fedoraproject.org> for iftop >= 0.17, which works
around a PuTTY issue (doesn't honor vt100 line-drawing when in UTF-8 mode) to get
sane lines drawn instead of letters. When using PuTTY in UTF-8 mode, you have to
execute "NCURSES_NO_UTF8_ACS=1 iftop" in the future. Technically, relinking from
curses to ncursesw is just half of the solution, calling setlocale() is the rest.
For further information, please have a look to Red Hat Bugzilla, bug ID #546032:
https://bugzilla.redhat.com/show_bug.cgi?id=546032
2011-10-03 21:55:33 +00:00
ddf 4ef2265377 Fixed missing "-N" in synopsis message (Robert Scheck <robert@fedoraproject.org>) 2011-10-03 21:53:26 +00:00
ddf a85b2c76cd Untested radiotap support. 2011-10-03 21:46:35 +00:00
ddf 067bc0d96f Added wmaster to the bad interfaces list. 2011-10-03 20:49:58 +00:00
ddf c387bd7430 Removed net/bpf.h as it reportedly breaks on Slackware.
Was added by PFLOG patch but the relevant definitions should be in pcap/bpf.h
2011-10-03 20:44:33 +00:00
ddf 06458b6deb Patch from Ole Tange <ole@tange.dk> to make rate adjust faster. 2011-10-03 20:32:27 +00:00
ddf 5612fba5e4 Support for DLT_NULL - Scott Bertilson. 2011-10-03 20:28:10 +00:00
ddf f6f4b68a07 Removed all references to s6_addr32, fixed compilation error. 2011-10-03 20:24:23 +00:00
ddf fc511cfea9 Patch from Scott Bertilson <ssb@umn.edu> to remove dependence on s6_addr32. 2011-10-03 20:21:55 +00:00
ddf cd57e76727 Patch for DLT_NULL. Scott Bertilson <ssb@umn.edu> 2011-10-03 20:09:06 +00:00
ddf 970508628b Frédéric Perrin patch for ipv6 reverse resolution via address structure that
retains IP family.
2011-10-03 20:00:58 +00:00
ddf 7f9d185d83 Updated FreeBSD compilation patch from Frédéric Perrin 2011-10-03 18:19:13 +00:00