288 Commits

Author SHA1 Message Date
6dce069966 Added the shippable autoconf-generated artefacts 2020-09-07 23:59:16 +01:00
5ad561cda3 Created .gitignore to exclude non-shippable config/build artefacts 2020-09-07 23:59:16 +01:00
Paul Warren
77901c8c53 Support scales beyond 1Gbps
Guido Jäkel <Guido.Jaekel@GMX.DE>
2018-10-03 18:02:36 +01:00
Paul Warren
949ed0f7e2 Choose first running interface, rather than first "up" interface (Redhat #1403025)
Robert Scheck <robert@fedoraproject.org>
2017-03-22 09:11:22 +00:00
Paul Warren
35af3cf65f Fix bug with DNS resolution. https://bugzilla.redhat.com/show_bug.cgi?id=1120254 2017-02-06 21:35:37 +00:00
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
pdw
dc26689ad5 Test commit. 2014-03-31 07:03:12 +00:00
pdw
ce00762015 Missing file from CVS. 2014-01-19 21:56:29 +00:00
pdw
23c18303e5 Updated ChangeLog 2014-01-19 20:32:50 +00:00
pdw
ceabf7a47a Fixed various compilation issues. 2014-01-19 20:28:31 +00:00
pdw
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
pdw
40add9566d Fixing warnings. 2014-01-05 20:04:12 +00:00
pdw
836733ba14 Fixes for a bunch of compiler warnings. 2014-01-05 20:02:51 +00:00
pdw
a7b8639fc9 Man page documentation of -t mode.
Compile time warning fixes.
Markus Koschany <apo@gambaru.de>
2014-01-05 17:22:39 +00:00
pdw
e81c0d8aae Fix to avoid system call in text mode wherever possible.
Robert Scheck <robert@fedoraproject.org>
2014-01-02 09:28:57 +00:00
pdw
ff057367f7 update authors file, change version to 1.0pre3 2014-01-01 17:42:40 +00:00
pdw
4995ff52f5 Updated change log. 2014-01-01 15:49:53 +00:00
pdw
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
pdw
975b775fd0 Update to licensing text. Patch by Robert Scheck <robert@fedoraproject.org> 2014-01-01 14:50:05 +00:00
pdw
4e296cc794 Patch to remove blinking cursor (unclear what platforms this affects)
Gerrit Renker <renker@ualberta.ca>
2014-01-01 14:46:30 +00:00
pdw
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
pdw
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
pdw
59cf360690 Code tidying. 2014-01-01 12:36:35 +00:00
pdw
9be050ef4c Minor fixes to man page from Markus Koschany <apo@gambaru.de> 2014-01-01 12:36:22 +00:00
pdw
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
pdw
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
pdw
ddba335721 Added missing docs for -m option.
Noticed by Toralf Förster <toralf.foerster@gmx.de>
2014-01-01 11:54:06 +00:00
pdw
940bdcca64 Put IPv6 address in square brackets if showing port number. 2013-11-19 11:11:10 +00:00
pdw
af3ed6ff48 Fixed typo in changelog, and error in application of i/f autodetection patch. 2011-10-04 20:40:34 +00:00
pdw
09f3d33527 Updated changelog. 2011-10-04 18:55:35 +00:00
pdw
8f1b75eda0 Attempt to detect if interface is actually up when doing autodetection. 2011-10-04 18:45:54 +00:00
pdw
093c15f72f Increased capture length and adjusted 802.11 header length for radiotap
support.
2011-10-04 18:30:59 +00:00
pdw
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
pdw
4ef2265377 Fixed missing "-N" in synopsis message (Robert Scheck <robert@fedoraproject.org>) 2011-10-03 21:53:26 +00:00
pdw
a85b2c76cd Untested radiotap support. 2011-10-03 21:46:35 +00:00
pdw
067bc0d96f Added wmaster to the bad interfaces list. 2011-10-03 20:49:58 +00:00
pdw
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
pdw
06458b6deb Patch from Ole Tange <ole@tange.dk> to make rate adjust faster. 2011-10-03 20:32:27 +00:00
pdw
5612fba5e4 Support for DLT_NULL - Scott Bertilson. 2011-10-03 20:28:10 +00:00