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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user