mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
merge soc07 r4916 - If we get a ICMP Protocol Unreachable from a host other than our target, we set the state to 'filtered' rather than 'closed'. Now it works like Port Unreachables and UDP.
This commit is contained in:
parent
2479d5d1d9
commit
f2e0ddb40a
1 changed files with 2 additions and 1 deletions
|
|
@ -3080,7 +3080,8 @@ static bool get_pcap_result(UltraScanInfo *USI, struct timeval *stime) {
|
|||
newstate = PORT_FILTERED;
|
||||
break;
|
||||
case 2: /* protocol unreachable */
|
||||
if (USI->scantype == IPPROT_SCAN) {
|
||||
if (USI->scantype == IPPROT_SCAN &&
|
||||
hss->target->v4hostip()->s_addr == ip->ip_src.s_addr) {
|
||||
newstate = PORT_CLOSED;
|
||||
} else
|
||||
newstate = PORT_FILTERED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue