summaryrefslogtreecommitdiff
path: root/iftop.c
AgeCommit message (Collapse)Author
2017-01-05Fix handling of packets that are too short to be valid - Frédéric Perrin ↵Paul Warren
<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-04Option to display packet counts - Frédéric Perrin <fperrin@brocade.com>Paul Warren
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-04Fixes for compilation warnings, reported by David Binderman <dcb314@hotmail.com>Paul Warren
2017-01-04Fix mac address displayPaul Warren
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-03Clean up libpcap on exit - Brian Russell <brussell@brocade.com>Paul Warren
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
2014-01-19Fixed various compilation issues.pdw
2014-01-05Fixes for a bunch of compiler warnings.pdw
2014-01-05Man page documentation of -t mode.pdw
Compile time warning fixes. Markus Koschany <apo@gambaru.de>
2014-01-01Treat multicast packets as incoming, rather than incoming (IPv4) or not at allpdw
(IPv6). Patch by Andreas Schwab <schwab@linux-m68k.org>
2014-01-01Patch for text output mode by originally by Patrik Bless, updated by Roman Hoogpdw
Antink <rha@open.ch>
2014-01-01Code tidying.pdw
2011-10-04Increased capture length and adjusted 802.11 header length for radiotappdw
support.
2011-10-03Patch by Robert Scheck <robert@fedoraproject.org> for iftop >= 0.17, which workspdw
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-03Untested radiotap support.pdw
2011-10-03Removed net/bpf.h as it reportedly breaks on Slackware.pdw
Was added by PFLOG patch but the relevant definitions should be in pcap/bpf.h
2011-10-03Support for DLT_NULL - Scott Bertilson.pdw
2011-10-03Patch from Scott Bertilson <ssb@umn.edu> to remove dependence on s6_addr32.pdw
2011-10-03Patch for DLT_NULL. Scott Bertilson <ssb@umn.edu>pdw
2011-10-02FreeBSD patch from Frederic Perrin <frederic.perrin@resel.fr> plus fix forpdw
compile error in gethostbyaddr resolver. Order of pcap.h vs bpf.h switched, to fix compilation on Mac OS X.
2010-11-27Applied patch from Mats Erik Andersson <mats.andersson@gisladisker.se>pdw
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427852#30 Adds support for IPv6 Also fixes: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477928 (minor typo) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595169 (performance problem with address hashing) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598367 (failing link address detection for GNU/kfreebsd)
2010-03-01Made DLT_PFLOG code conditional to avoid compilation problems on otherpdw
platforms.
2010-03-01Applied patch from Richard Tóth <risko@iklub.sk> to support PFLOG interfaces.pdw
2005-03-31802.1q VLAN support from Jacek Konieczny <jajcus@bnet.pl>pdw
2004-07-26Added support for PPP interfaces.pdw
2004-02-28Added support for DLT_NULLpdw
0.16
2004-02-05Fixes for type-punned pointers - Henne Vogelsang <hvogel@suse.de>pdw
2004-01-21""chris
2003-10-20Randomly renamed options and buttons.pdw
Stopped whinging about default config file not existing. 0.15pre2
2003-10-19Added initial config file support.pdw
2003-06-06Solaris/autoconf patch from Jonathan Abbey <jonabbey@ganymeta.org>pdw
2003-05-21No longer exits if it can't find IP or MAC address.pdw
2003-05-20Determine direction according to IP address if the hardware layer does not ↵pdw
reveal direction.
2003-05-19Switched back to SIOCGIFHWADDR for getting hardware address. Other ↵pdw
platforms will need some more work...
2003-02-06""chris
2002-11-04""chris
2002-10-31Added token ring network support.pdw
2002-10-25Fixed compile time warnings.pdw
2002-10-25Improved error message for failure to get h/ware address.pdw
Put helpmsg on inverse bg.
2002-10-25User selectable sort criteria.pdw
2002-10-25""chris
2002-10-24Added popup status messages.pdw
2002-10-210.9pre4.pdw
Merged in FreeBSD fixes.
2002-10-21""chris
2002-10-18Include lots of header files, rather than relying on O/S specific ones.pdw
2002-10-18Various changes for portability to FreeBSD.pdw
Added "R" to control service resolution.
2002-10-11Various odds and ends.pdw
2002-10-10Minor bug fixes:pdw
- direction allocation in promisc mode with no net setting - aggregate protocols if port display is turned off.
2002-10-10Updated SPEC file.pdw
Updated to version 0.8pre1. Now compiles with older libpcap (without SLL support). Further fixes to display of rates.
2002-10-10Added service hash for resolving port/protocol numbers to names.pdw
Minor fix to handling of netmasks end /32.
2002-10-10Added support for displaying ports.pdw