1. 05 Jan, 2017 1 commit
    • Fix handling of packets that are too short to be valid - Frédéric Perrin <fperrin@brocade.com> · 3fae1acf
      Paul Warren authored
      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).
  2. 04 Jan, 2017 4 commits
  3. 03 Jan, 2017 6 commits
  4. 31 Mar, 2014 1 commit
  5. 19 Jan, 2014 4 commits
  6. 05 Jan, 2014 3 commits
  7. 02 Jan, 2014 1 commit
  8. 01 Jan, 2014 12 commits
  9. 19 Nov, 2013 1 commit
  10. 04 Oct, 2011 4 commits
  11. 03 Oct, 2011 3 commits