Nmap Development mailing list archives

Protocol scan and Host Unreachable


From: Rasmus Andersson <rasmus () pole-position org>
Date: Thu, 19 Dec 2002 02:56:43 +0100

Why is "host unreachable" interpreted the same as "protocol unreachable"? Is it a bug or do some hosts give that answer for unused protocols?

nmap-3.10ALPHA7/scan_engine.cc:
  ...
  switch(icmp->icmp_code) {

  case 1: /* Host unreachable */
  case 2: /* pr0t0c0l unreachable */
    if (scantype == IPPROT_SCAN) {
      newstate = PORT_CLOSED;
      ...


---------------------------------------------------------------------
For help using this (nmap-dev) mailing list, send a blank email to nmap-dev-help () insecure org . List run by ezmlm-idx (www.ezmlm.org).



Current thread: