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
2017-01-04 22:55:26 +00:00
2017-01-04 22:55:26 +00:00
2017-01-04 22:55:26 +00:00
2017-01-03 21:42:37 +00:00
""
2002-11-04 12:29:06 +00:00
2017-01-03 22:08:49 +00:00
2007-03-03 16:01:48 +00:00
2007-03-03 16:01:48 +00:00
""
2002-11-04 12:29:06 +00:00
2002-10-31 16:53:32 +00:00
2002-10-31 16:53:32 +00:00
2002-04-03 21:28:41 +00:00
2007-03-03 23:41:58 +00:00
2003-10-24 18:40:45 +00:00
""
2002-11-04 12:29:06 +00:00
2002-10-31 16:53:32 +00:00
2014-01-19 21:56:29 +00:00
""
2003-02-06 10:51:24 +00:00
2005-12-25 20:42:45 +00:00
""
2002-11-04 12:29:06 +00:00
""
2002-11-04 12:29:06 +00:00
""
2003-02-06 10:51:24 +00:00
2002-10-04 09:11:36 +00:00
""
2002-03-24 17:27:12 +00:00
2002-03-24 16:22:26 +00:00
2003-10-19 06:44:33 +00:00
2002-10-11 15:21:35 +00:00
2002-10-11 15:21:35 +00:00
2011-10-03 18:17:35 +00:00
2002-10-31 16:53:32 +00:00
2017-01-03 21:50:49 +00:00
2007-03-03 16:01:48 +00:00
""
2002-03-24 17:27:12 +00:00
2003-11-07 02:16:41 +00:00
2003-10-19 06:44:33 +00:00

README for iftop
$Id$

Read the INSTALL file, manual page and source code for more information.

iftop must be run as root.

KNOWN ISSUES

Solaris:

On Solaris, iftop has to run in promiscuous mode in order to capture
outgoing packets.  iftop autoconfigures to run in promiscuous mode on
Solaris, but will filter out non-broadcast packets which are not
addressed to or from localhost.  On Solaris, the -p option merely
disables that filter.

If you have some other sort of system that behaves like Solaris in
needing promiscuous mode, you can pass --enable-default-promiscuous to
configure to enable this behavior.

Cf. http://www.tcpdump.org/lists/workers/2002/02/msg00010.html

The version of curses distributed with Solaris may not be sufficient for
iftop's needs. You will probably need ncurses or similar.

Description
Languages
C 75%
Makefile 16.5%
M4 4.5%
Roff 3.9%