1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-20 14:39:02 +00:00

fix icmp type/code 3/0 response handling to port scans (port is filtered)

This commit is contained in:
fyodor
2005-12-03 04:41:02 +00:00
parent 0551dc6964
commit 98ab4df168
2 changed files with 7 additions and 0 deletions

View File

@@ -2798,6 +2798,9 @@ static bool get_pcap_result(UltraScanInfo *USI, struct timeval *stime) {
break;
}
switch(icmp->icmp_code) {
case 0: /* Network unreachable */
newstate = PORT_FILTERED;
break;
case 1: /* Host Unreachable */
newstate = PORT_FILTERED;
break;