Commit Graph
13 Commits
Author SHA1 Message Date
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 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